From b6ca2f0c2160e76c2bcb39cf0ceb69211f33bc24 Mon Sep 17 00:00:00 2001
From: AngeloAyranji
Date: Fri, 20 Dec 2024 15:52:51 +0200
Subject: [PATCH 1/8] feat(justverified): add openpassport to widget
---
.../lib/components/SelectCredentialItem/index.tsx | 3 +++
.../src/lib/dialogs/JustVerifiedDialog/index.tsx | 7 +++++++
.../@justverified/plugin/src/lib/plugins/index.tsx | 2 +-
.../plugin/src/lib/types/credentials/index.ts | 14 ++++++++++----
.../types/credentials/openpassport-credential.ts | 5 +++++
5 files changed, 26 insertions(+), 5 deletions(-)
create mode 100644 packages/@justverified/plugin/src/lib/types/credentials/openpassport-credential.ts
diff --git a/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx b/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
index d27c548c..5229d28a 100644
--- a/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
+++ b/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
@@ -58,6 +58,9 @@ export const SelectCredentialItem: FC = ({
return ;
case 'email':
return ;
+ case 'openpassport':
+ // TODO: Change to OpenPassportIcon
+ return ;
}
}, [credential]);
diff --git a/packages/@justverified/plugin/src/lib/dialogs/JustVerifiedDialog/index.tsx b/packages/@justverified/plugin/src/lib/dialogs/JustVerifiedDialog/index.tsx
index aa6d4681..b29329f7 100644
--- a/packages/@justverified/plugin/src/lib/dialogs/JustVerifiedDialog/index.tsx
+++ b/packages/@justverified/plugin/src/lib/dialogs/JustVerifiedDialog/index.tsx
@@ -13,6 +13,7 @@ import {
DiscordEthereumEip712Signature,
GithubEthereumEip712Signature,
TelegramEthereumEip712Signature,
+ OpenPassportEthereumEip712Signature,
TwitterEthereumEip712Signature,
} from '../../types';
import { usePreviousState, useSocialVerification } from '../../hooks';
@@ -199,6 +200,12 @@ export const JustVerifiedDialog: FC = ({
).credentialSubject.username;
break;
}
+ case 'openpassport': {
+ socialValue = (
+ credentialValue as OpenPassportEthereumEip712Signature
+ ).credentialSubject.proof;
+ break;
+ }
default: {
socialValue = '';
}
diff --git a/packages/@justverified/plugin/src/lib/plugins/index.tsx b/packages/@justverified/plugin/src/lib/plugins/index.tsx
index 0c3462ff..08f56473 100644
--- a/packages/@justverified/plugin/src/lib/plugins/index.tsx
+++ b/packages/@justverified/plugin/src/lib/plugins/index.tsx
@@ -53,7 +53,7 @@ export const JustVerifiedPlugin = (
return (
= {
"github": "com.github",
"twitter": "com.twitter",
"discord": "com.discord",
"telegram": "org.telegram",
- "email": "email"
+ "email": "email",
+ "openpassport": "app.openpassport"
} as const
export const CredentialMetadataKeyStandardReverse: Record = {
@@ -21,7 +24,8 @@ export const CredentialMetadataKeyStandardReverse: Record {
dataKey: string;
diff --git a/packages/@justverified/plugin/src/lib/types/credentials/openpassport-credential.ts b/packages/@justverified/plugin/src/lib/types/credentials/openpassport-credential.ts
new file mode 100644
index 00000000..18d92c72
--- /dev/null
+++ b/packages/@justverified/plugin/src/lib/types/credentials/openpassport-credential.ts
@@ -0,0 +1,5 @@
+import { CredentialSubjectValue, EthereumEip712Signature2021 } from "../ethereumEip712Signature";
+export interface OpenPassportCredential extends CredentialSubjectValue{
+ proof: string;
+}
+export type OpenPassportEthereumEip712Signature = EthereumEip712Signature2021
\ No newline at end of file
From de0931e22ff6e4893260923affb44d474b3b88d8 Mon Sep 17 00:00:00 2001
From: AngeloAyranji
Date: Fri, 3 Jan 2025 11:36:28 +0200
Subject: [PATCH 2/8] fix(@justverified): add openpassport to console + add
type with prood in credential value
---
.yarnrc.yml | 2 ++
.../src/providers/ConsoleProvider/index.tsx | 1 +
.../components/SelectCredentialItem/index.tsx | 16 ++++++++++------
.../plugin/src/stories/justverified.stories.tsx | 2 +-
4 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/.yarnrc.yml b/.yarnrc.yml
index ebe8f83b..309d2551 100644
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -1,3 +1,5 @@
nodeLinker: node-modules
+npmRegistryServer: "https://registry.yarnpkg.com"
+
yarnPath: .yarn/releases/yarn-4.1.1.cjs
diff --git a/apps/console/src/providers/ConsoleProvider/index.tsx b/apps/console/src/providers/ConsoleProvider/index.tsx
index 0cf4fa5c..7217b111 100644
--- a/apps/console/src/providers/ConsoleProvider/index.tsx
+++ b/apps/console/src/providers/ConsoleProvider/index.tsx
@@ -21,6 +21,7 @@ export const ConsoleProvider: FC = ({ children }) => {
'github',
'discord',
'email',
+ 'openpassport',
]);
return (
void;
credentialValue:
| EthereumEip712Signature2021<{ username?: string; email?: string }>
+ | EthereumEip712Signature2021<{ proof?: string }>
| undefined;
disabled?: boolean;
}
@@ -36,12 +37,15 @@ export const SelectCredentialItem: FC = ({
() => selectedCredential === credential,
[selectedCredential, credential]
);
- const username = useMemo(
- () =>
- credentialValue?.credentialSubject?.username ||
- credentialValue?.credentialSubject?.email,
- [credentialValue]
- );
+ const username = useMemo(() => {
+ const subject = credentialValue?.credentialSubject;
+ if (!subject) return undefined;
+
+ return 'username' in subject ? subject.username :
+ 'email' in subject ? subject.email :
+ 'proof' in subject ? subject.proof :
+ undefined;
+ }, [credentialValue]);
const expirationDate = useMemo(
() => credentialValue?.expirationDate,
[credentialValue]
diff --git a/packages/@justverified/plugin/src/stories/justverified.stories.tsx b/packages/@justverified/plugin/src/stories/justverified.stories.tsx
index d3074875..6ac69ca8 100644
--- a/packages/@justverified/plugin/src/stories/justverified.stories.tsx
+++ b/packages/@justverified/plugin/src/stories/justverified.stories.tsx
@@ -52,7 +52,7 @@ const JustWeb3Config: JustWeb3ProviderConfig = {
// enableAuth: true,
plugins: [
JustVerifiedPlugin(
- ['twitter', 'github', 'discord']
+ ['twitter', 'github', 'discord', 'openpassport'],
// 'http://localhost:3009/verifications/v1'
// 'https://api-staging.justaname.id/verifications/v1'
),
From fa7b08b8a95ad84cf743429d3468d260e1d236ef Mon Sep 17 00:00:00 2001
From: AngeloAyranji
Date: Mon, 6 Jan 2025 11:25:37 +0200
Subject: [PATCH 3/8] feat(console): add openpassport to justverified toggle +
emit openpassport events
---
.../analytics/events/plugins/justVerified/index.ts | 12 ++++++++++++
.../plugins/justVerified/openpassport-disabled.ts | 3 +++
.../plugins/justVerified/openpassport-enabled.ts | 3 +++
.../customizer/PluginsSection/JustVerified/index.tsx | 8 ++++++++
4 files changed, 26 insertions(+)
create mode 100644 apps/console/src/analytics/events/plugins/justVerified/openpassport-disabled.ts
create mode 100644 apps/console/src/analytics/events/plugins/justVerified/openpassport-enabled.ts
diff --git a/apps/console/src/analytics/events/plugins/justVerified/index.ts b/apps/console/src/analytics/events/plugins/justVerified/index.ts
index 9b9aea16..357b7616 100644
--- a/apps/console/src/analytics/events/plugins/justVerified/index.ts
+++ b/apps/console/src/analytics/events/plugins/justVerified/index.ts
@@ -11,6 +11,14 @@ import {
import { TELEGRAM_ENABLED, TelegramEnabledPayload } from './telegram-enabled';
import { TWITTER_DISABLED, TwitterDisabledPayload } from './twitter-disabled';
import { TWITTER_ENABLED, TwitterEnabledPayload } from './twitter-enabled';
+import {
+ OPENPASSPORT_DISABLED,
+ OpenPassportDisabledPayload,
+} from './openpassport-disabled';
+import {
+ OPENPASSPORT_ENABLED,
+ OpenPassportEnabledPayload,
+} from './openpassport-enabled';
export const JUST_VERIFIED_EVENTS = {
DISCORD_DISABLED,
@@ -23,6 +31,8 @@ export const JUST_VERIFIED_EVENTS = {
TELEGRAM_ENABLED,
TWITTER_DISABLED,
TWITTER_ENABLED,
+ OPENPASSPORT_DISABLED,
+ OPENPASSPORT_ENABLED,
} as const;
export interface JustVerifiedEventsPayload {
@@ -36,4 +46,6 @@ export interface JustVerifiedEventsPayload {
[TELEGRAM_ENABLED]: TelegramEnabledPayload;
[TWITTER_DISABLED]: TwitterDisabledPayload;
[TWITTER_ENABLED]: TwitterEnabledPayload;
+ [OPENPASSPORT_DISABLED]: OpenPassportDisabledPayload;
+ [OPENPASSPORT_ENABLED]: OpenPassportEnabledPayload;
}
diff --git a/apps/console/src/analytics/events/plugins/justVerified/openpassport-disabled.ts b/apps/console/src/analytics/events/plugins/justVerified/openpassport-disabled.ts
new file mode 100644
index 00000000..b421a9f2
--- /dev/null
+++ b/apps/console/src/analytics/events/plugins/justVerified/openpassport-disabled.ts
@@ -0,0 +1,3 @@
+export const OPENPASSPORT_DISABLED = 'OPENPASSPORT_DISABLED';
+
+export interface OpenPassportDisabledPayload {}
diff --git a/apps/console/src/analytics/events/plugins/justVerified/openpassport-enabled.ts b/apps/console/src/analytics/events/plugins/justVerified/openpassport-enabled.ts
new file mode 100644
index 00000000..c97cdba6
--- /dev/null
+++ b/apps/console/src/analytics/events/plugins/justVerified/openpassport-enabled.ts
@@ -0,0 +1,3 @@
+export const OPENPASSPORT_ENABLED = 'OPENPASSPORT_ENABLED';
+
+export interface OpenPassportEnabledPayload {}
diff --git a/apps/console/src/components/sections/customizer/PluginsSection/JustVerified/index.tsx b/apps/console/src/components/sections/customizer/PluginsSection/JustVerified/index.tsx
index 0b65893e..71e1a1b5 100644
--- a/apps/console/src/components/sections/customizer/PluginsSection/JustVerified/index.tsx
+++ b/apps/console/src/components/sections/customizer/PluginsSection/JustVerified/index.tsx
@@ -39,6 +39,11 @@ const socials: { logo: ReactNode; title: string; credential: Credentials }[] = [
title: 'Discord',
credential: 'discord',
},
+ {
+ logo: ,
+ title: 'OpenPassport',
+ credential: 'openpassport',
+ },
{
logo: ,
title: 'Email',
@@ -96,6 +101,9 @@ export const JustVerified = () => {
case 'email':
getAnalyticsClient().track(unCheck ? 'EMAIL_DISABLED' : 'EMAIL_ENABLED', {});
break;
+ case 'openpassport':
+ getAnalyticsClient().track(unCheck ? 'OPENPASSPORT_DISABLED' : 'OPENPASSPORT_ENABLED', {});
+ break;
default:
break;
}
From 3a0640fe1e1c08b1206d52052ef01091ded26b1b Mon Sep 17 00:00:00 2001
From: AngeloAyranji
Date: Mon, 6 Jan 2025 13:01:11 +0200
Subject: [PATCH 4/8] fix(@justverified): changed proof to openPassportProof
---
.../plugin/src/lib/components/SelectCredentialItem/index.tsx | 4 ++--
.../plugin/src/lib/dialogs/JustVerifiedDialog/index.tsx | 3 ++-
.../src/lib/types/credentials/openpassport-credential.ts | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx b/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
index faeea466..46cb50d1 100644
--- a/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
+++ b/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
@@ -20,7 +20,7 @@ export interface SelectCredentialItemProps {
onClick: () => void;
credentialValue:
| EthereumEip712Signature2021<{ username?: string; email?: string }>
- | EthereumEip712Signature2021<{ proof?: string }>
+ | EthereumEip712Signature2021<{ openPassportProof?: string }>
| undefined;
disabled?: boolean;
}
@@ -43,7 +43,7 @@ export const SelectCredentialItem: FC = ({
return 'username' in subject ? subject.username :
'email' in subject ? subject.email :
- 'proof' in subject ? subject.proof :
+ 'openPassportProof' in subject ? subject.openPassportProof :
undefined;
}, [credentialValue]);
const expirationDate = useMemo(
diff --git a/packages/@justverified/plugin/src/lib/dialogs/JustVerifiedDialog/index.tsx b/packages/@justverified/plugin/src/lib/dialogs/JustVerifiedDialog/index.tsx
index b29329f7..25ae2c1c 100644
--- a/packages/@justverified/plugin/src/lib/dialogs/JustVerifiedDialog/index.tsx
+++ b/packages/@justverified/plugin/src/lib/dialogs/JustVerifiedDialog/index.tsx
@@ -203,13 +203,14 @@ export const JustVerifiedDialog: FC = ({
case 'openpassport': {
socialValue = (
credentialValue as OpenPassportEthereumEip712Signature
- ).credentialSubject.proof;
+ ).credentialSubject.openPassportProof;
break;
}
default: {
socialValue = '';
}
}
+
if (mAppsAlreadyEnabled?.includes(mApp)) {
updateRecords({
text: [
diff --git a/packages/@justverified/plugin/src/lib/types/credentials/openpassport-credential.ts b/packages/@justverified/plugin/src/lib/types/credentials/openpassport-credential.ts
index 18d92c72..d7acb844 100644
--- a/packages/@justverified/plugin/src/lib/types/credentials/openpassport-credential.ts
+++ b/packages/@justverified/plugin/src/lib/types/credentials/openpassport-credential.ts
@@ -1,5 +1,5 @@
import { CredentialSubjectValue, EthereumEip712Signature2021 } from "../ethereumEip712Signature";
export interface OpenPassportCredential extends CredentialSubjectValue{
- proof: string;
+ openPassportProof: string;
}
export type OpenPassportEthereumEip712Signature = EthereumEip712Signature2021
\ No newline at end of file
From 0ba213ae6273a0f3b488d7861453b00bfa4ce59c Mon Sep 17 00:00:00 2001
From: AngeloAyranji
Date: Tue, 7 Jan 2025 17:10:10 +0200
Subject: [PATCH 5/8] fix(@justverified): return username when verification is
done
---
.../plugin/src/lib/components/SelectCredentialItem/index.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx b/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
index 46cb50d1..b3db631b 100644
--- a/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
+++ b/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
@@ -43,7 +43,7 @@ export const SelectCredentialItem: FC = ({
return 'username' in subject ? subject.username :
'email' in subject ? subject.email :
- 'openPassportProof' in subject ? subject.openPassportProof :
+ 'openPassportProof' in subject ? "Valid Passport" :
undefined;
}, [credentialValue]);
const expirationDate = useMemo(
From 089411a6ca618de777f0c5347808d607d9a1a3ea Mon Sep 17 00:00:00 2001
From: AngeloAyranji
Date: Tue, 7 Jan 2025 17:25:33 +0200
Subject: [PATCH 6/8] feat(justverified): add openpassport to verifications
section in profile
---
.../plugin/src/lib/components/VerificationCard/index.tsx | 2 +-
.../@justweb3/widget/src/lib/icons/records-icons/index.tsx | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/packages/@justverified/plugin/src/lib/components/VerificationCard/index.tsx b/packages/@justverified/plugin/src/lib/components/VerificationCard/index.tsx
index 53363ee0..c9efcad2 100644
--- a/packages/@justverified/plugin/src/lib/components/VerificationCard/index.tsx
+++ b/packages/@justverified/plugin/src/lib/components/VerificationCard/index.tsx
@@ -136,7 +136,7 @@ export const VerificationCard: FC = ({
fontFamily: 'var(--justweb3-font-family)'
}}
>
- {verifiedRecords[credential]?.credentialSubject.username || verifiedRecords[credential]?.credentialSubject.email}
+ {verifiedRecords[credential]?.credentialSubject.username || verifiedRecords[credential]?.credentialSubject.email || (verifiedRecords[credential]?.credentialSubject.openPassportProof && "Valid Passport")}
diff --git a/packages/@justweb3/widget/src/lib/icons/records-icons/index.tsx b/packages/@justweb3/widget/src/lib/icons/records-icons/index.tsx
index d9532257..81ea2274 100644
--- a/packages/@justweb3/widget/src/lib/icons/records-icons/index.tsx
+++ b/packages/@justweb3/widget/src/lib/icons/records-icons/index.tsx
@@ -13,7 +13,7 @@ import {
TelegramIcon,
TwitterIcon,
WebsiteIcon,
- XIcon
+ XIcon,
} from '@justweb3/ui';
export const getTextRecordIcon = (key: string) => {
@@ -48,6 +48,8 @@ export const getTextRecordIcon = (key: string) => {
return ;
case 'org.telegram':
return ;
+ case 'app.openpassport':
+ return ;
default:
return (
Date: Wed, 15 Jan 2025 16:44:18 +0200
Subject: [PATCH 7/8] feat(just-verified): added openpassport Icon
---
.../PluginsSection/JustVerified/index.tsx | 3 ++-
.../components/SelectCredentialItem/index.tsx | 18 +++++++-------
.../lib/icons/components/socials/Discord.tsx | 2 +-
.../lib/icons/components/socials/Email.tsx | 2 +-
.../lib/icons/components/socials/Facebook.tsx | 2 +-
.../icons/components/socials/Farcaster.tsx | 2 +-
.../lib/icons/components/socials/Github.tsx | 2 +-
.../lib/icons/components/socials/Google.tsx | 2 +-
.../icons/components/socials/Instagram.tsx | 2 +-
.../lib/icons/components/socials/Linkedin.tsx | 2 +-
.../lib/icons/components/socials/Medium.tsx | 2 +-
.../lib/icons/components/socials/Mirror.tsx | 2 +-
.../icons/components/socials/OpenPassport.tsx | 24 +++++++++++++++++++
.../lib/icons/components/socials/Reddit.tsx | 4 ++--
.../lib/icons/components/socials/Telegram.tsx | 2 +-
.../lib/icons/components/socials/Twitter.tsx | 2 +-
.../lib/icons/components/socials/Warpcast.tsx | 2 +-
.../lib/icons/components/socials/Website.tsx | 2 +-
.../ui/src/lib/icons/components/socials/X.tsx | 2 +-
.../src/lib/icons/components/socials/index.ts | 3 +++
.../lib/icons/svgs/socials/open-passport.svg | 5 ++++
.../src/lib/icons/records-icons/index.tsx | 3 ++-
22 files changed, 62 insertions(+), 28 deletions(-)
create mode 100644 packages/@justweb3/ui/src/lib/icons/components/socials/OpenPassport.tsx
create mode 100644 packages/@justweb3/ui/src/lib/icons/svgs/socials/open-passport.svg
diff --git a/apps/console/src/components/sections/customizer/PluginsSection/JustVerified/index.tsx b/apps/console/src/components/sections/customizer/PluginsSection/JustVerified/index.tsx
index 71e1a1b5..9f2c225f 100644
--- a/apps/console/src/components/sections/customizer/PluginsSection/JustVerified/index.tsx
+++ b/apps/console/src/components/sections/customizer/PluginsSection/JustVerified/index.tsx
@@ -7,6 +7,7 @@ import {
GithubIcon,
TelegramIcon,
TwitterIcon,
+ OpenPassportIcon
} from '@justweb3/ui';
import { useConsole } from '../../../../../providers/ConsoleProvider';
import { Switch } from '../../../../ui/switch';
@@ -40,7 +41,7 @@ const socials: { logo: ReactNode; title: string; credential: Credentials }[] = [
credential: 'discord',
},
{
- logo:
,
+ logo:
,
title: 'OpenPassport',
credential: 'openpassport',
},
diff --git a/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx b/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
index b3db631b..c0aff234 100644
--- a/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
+++ b/packages/@justverified/plugin/src/lib/components/SelectCredentialItem/index.tsx
@@ -9,6 +9,7 @@ import {
GithubIcon,
TelegramIcon,
TwitterIcon,
+ OpenPassportIcon
} from '@justweb3/ui';
import { Credentials } from '../../types';
import { EthereumEip712Signature2021 } from '../../types/ethereumEip712Signature';
@@ -19,9 +20,9 @@ export interface SelectCredentialItemProps {
selectedCredential: Credentials | undefined;
onClick: () => void;
credentialValue:
- | EthereumEip712Signature2021<{ username?: string; email?: string }>
- | EthereumEip712Signature2021<{ openPassportProof?: string }>
- | undefined;
+ | EthereumEip712Signature2021<{ username?: string; email?: string }>
+ | EthereumEip712Signature2021<{ openPassportProof?: string }>
+ | undefined;
disabled?: boolean;
}
@@ -40,11 +41,11 @@ export const SelectCredentialItem: FC
= ({
const username = useMemo(() => {
const subject = credentialValue?.credentialSubject;
if (!subject) return undefined;
-
+
return 'username' in subject ? subject.username :
- 'email' in subject ? subject.email :
- 'openPassportProof' in subject ? "Valid Passport" :
- undefined;
+ 'email' in subject ? subject.email :
+ 'openPassportProof' in subject ? "Valid Passport" :
+ undefined;
}, [credentialValue]);
const expirationDate = useMemo(
() => credentialValue?.expirationDate,
@@ -63,8 +64,7 @@ export const SelectCredentialItem: FC = ({
case 'email':
return ;
case 'openpassport':
- // TODO: Change to OpenPassportIcon
- return ;
+ return ;
}
}, [credential]);
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Discord.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Discord.tsx
index d202b35c..d958b761 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Discord.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Discord.tsx
@@ -9,7 +9,7 @@ export default function Discord(props: SVGProps) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Email.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Email.tsx
index 10061975..c7549ef5 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Email.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Email.tsx
@@ -9,7 +9,7 @@ export default function Email(props: SVGProps) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Facebook.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Facebook.tsx
index c5f3b51b..9a0d3eef 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Facebook.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Facebook.tsx
@@ -9,7 +9,7 @@ export default function Facebook(props: SVGProps) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Farcaster.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Farcaster.tsx
index 73a13607..ef91cd25 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Farcaster.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Farcaster.tsx
@@ -9,7 +9,7 @@ export default function Farcaster(props: SVGProps) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Github.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Github.tsx
index deef454c..30ed3fcf 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Github.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Github.tsx
@@ -9,7 +9,7 @@ export default function Github(props: SVGProps) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Google.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Google.tsx
index 3f2a5729..b2adf392 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Google.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Google.tsx
@@ -8,7 +8,7 @@ export default function Google(props: SVGProps) {
{...props}
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Instagram.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Instagram.tsx
index 7694b6be..327df871 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Instagram.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Instagram.tsx
@@ -9,7 +9,7 @@ export default function Instagram(props: SVGProps) {
>
) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Medium.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Medium.tsx
index 77b9c06f..660553f1 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Medium.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Medium.tsx
@@ -9,7 +9,7 @@ export default function Medium(props: SVGProps) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Mirror.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Mirror.tsx
index c717376b..be41fb69 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Mirror.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Mirror.tsx
@@ -9,7 +9,7 @@ export default function Mirror(props: SVGProps) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/OpenPassport.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/OpenPassport.tsx
new file mode 100644
index 00000000..f2db252d
--- /dev/null
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/OpenPassport.tsx
@@ -0,0 +1,24 @@
+import type { SVGProps } from 'react';
+export default function OpenPassport(props: SVGProps) {
+ return (
+
+ );
+}
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Reddit.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Reddit.tsx
index 29d97906..d18eb630 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Reddit.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Reddit.tsx
@@ -9,11 +9,11 @@ export default function Reddit(props: SVGProps) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Telegram.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Telegram.tsx
index b885ede4..7c702aa9 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Telegram.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Telegram.tsx
@@ -9,7 +9,7 @@ export default function Telegram(props: SVGProps) {
>
) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Warpcast.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Warpcast.tsx
index d3535b50..28f0c145 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Warpcast.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Warpcast.tsx
@@ -8,7 +8,7 @@ export default function Warpcast(props: SVGProps) {
{...props}
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/Website.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/Website.tsx
index 85decdf4..fa7b75da 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/Website.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/Website.tsx
@@ -8,7 +8,7 @@ export default function Website(props: SVGProps) {
{...props}
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/X.tsx b/packages/@justweb3/ui/src/lib/icons/components/socials/X.tsx
index aa3f8703..4a46ee92 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/X.tsx
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/X.tsx
@@ -9,7 +9,7 @@ export default function X(props: SVGProps) {
>
diff --git a/packages/@justweb3/ui/src/lib/icons/components/socials/index.ts b/packages/@justweb3/ui/src/lib/icons/components/socials/index.ts
index 05c3318e..8b070cc0 100644
--- a/packages/@justweb3/ui/src/lib/icons/components/socials/index.ts
+++ b/packages/@justweb3/ui/src/lib/icons/components/socials/index.ts
@@ -8,6 +8,7 @@ import InstagramIcon from './Instagram';
import LinkedinIcon from './Linkedin';
import MediumIcon from './Medium';
import MirrorIcon from './Mirror';
+import OpenPassportIcon from './OpenPassport';
import RedditIcon from './Reddit';
import TelegramIcon from './Telegram';
import TwitterIcon from './Twitter';
@@ -25,6 +26,7 @@ const socials = {
linkedin: LinkedinIcon,
medium: MediumIcon,
mirror: MirrorIcon,
+ 'open-passport': OpenPassportIcon,
reddit: RedditIcon,
telegram: TelegramIcon,
twitter: TwitterIcon,
@@ -45,6 +47,7 @@ export {
LinkedinIcon,
MediumIcon,
MirrorIcon,
+ OpenPassportIcon,
RedditIcon,
TelegramIcon,
TwitterIcon,
diff --git a/packages/@justweb3/ui/src/lib/icons/svgs/socials/open-passport.svg b/packages/@justweb3/ui/src/lib/icons/svgs/socials/open-passport.svg
new file mode 100644
index 00000000..6cc7a720
--- /dev/null
+++ b/packages/@justweb3/ui/src/lib/icons/svgs/socials/open-passport.svg
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/packages/@justweb3/widget/src/lib/icons/records-icons/index.tsx b/packages/@justweb3/widget/src/lib/icons/records-icons/index.tsx
index 81ea2274..9fa9290d 100644
--- a/packages/@justweb3/widget/src/lib/icons/records-icons/index.tsx
+++ b/packages/@justweb3/widget/src/lib/icons/records-icons/index.tsx
@@ -14,6 +14,7 @@ import {
TwitterIcon,
WebsiteIcon,
XIcon,
+ OpenPassportIcon
} from '@justweb3/ui';
export const getTextRecordIcon = (key: string) => {
@@ -49,7 +50,7 @@ export const getTextRecordIcon = (key: string) => {
case 'org.telegram':
return ;
case 'app.openpassport':
- return ;
+ return ;
default:
return (
Date: Thu, 16 Jan 2025 13:07:01 +0200
Subject: [PATCH 8/8] feat: removed default npmRegistryServer
---
.yarnrc.yml | 2 --
1 file changed, 2 deletions(-)
diff --git a/.yarnrc.yml b/.yarnrc.yml
index 309d2551..ebe8f83b 100644
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -1,5 +1,3 @@
nodeLinker: node-modules
-npmRegistryServer: "https://registry.yarnpkg.com"
-
yarnPath: .yarn/releases/yarn-4.1.1.cjs