@tetsuo-ai/marketplace-react 0.1.0 → 0.1.1
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/CHANGELOG.md +8 -0
- package/dist/{chunk-KJMR6OGC.js → chunk-A7ETZFNH.js} +101 -5
- package/dist/chunk-A7ETZFNH.js.map +1 -0
- package/dist/components/agenc-components.css +20 -0
- package/dist/components/index.cjs +100 -1
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-BLrlBVj-.d.cts → index-DUsGVhDz.d.cts} +147 -10
- package/dist/{index-CKTYsNPH.d.ts → index-zLJX8XdK.d.ts} +147 -10
- package/dist/index.cjs +100 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/components/ProviderCard.stories.tsx +54 -4
- package/src/components/ProviderCard.tsx +113 -9
- package/src/components/__fixtures__/index.tsx +28 -0
- package/src/components/agenc-components.css +20 -0
- package/src/components/index.ts +12 -0
- package/src/components/strings.ts +8 -0
- package/src/components/useAgentVerification.ts +223 -0
- package/src/index.ts +10 -0
- package/dist/chunk-KJMR6OGC.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge,
|
|
1
|
+
export { e as AgentVerificationReader, f as AgentVerificationReaderOptions, g as AgentVerificationResult, h as AgentVerificationRpc, B as Badge, i as BadgeProps, j as BadgeTone, k as Button, l as ButtonProps, m as ButtonVariant, n as COMPONENT_CATALOG, o as ComponentStringId, D as DEFAULT_TRUST_HREF, p as DisputeBanner, q as DisputeBannerProps, E as EN_COMPONENT_STRINGS, H as HireButton, s as HireButtonProps, t as HireCheckoutListing, u as HireCheckoutModal, v as HireCheckoutModalProps, L as ListingCard, w as ListingCardData, x as ListingCardProps, y as ListingGrid, z as ListingGridProps, M as Modal, F as ModalProps, J as ModerationBadge, K as ModerationBadgeProps, N as ModerationState, P as PoweredByAgenC, O as PoweredByAgenCProps, Q as ProviderCard, S as ProviderCardProps, U as ReferrerDisclosure, W as ReferrerDisclosureProps, X as ReviewPanel, Y as ReviewPanelProps, Z as Spinner, _ as SpinnerProps, $ as StateKind, a0 as StateMessage, a1 as StateMessageProps, a5 as TaskTimeline, a6 as TaskTimelineProps, a7 as ThemableProps, a9 as UNVERIFIED, aa as UseAgentVerificationOptions, ab as UseAgentVerificationResult, ac as VerifiedBadge, ad as VerifiedBadgeProps, ae as agentVerificationReaderFromRpc, af as cx, ag as decodeListingCategory, ah as decodeListingName, ai as decodeListingTags, aj as elementClass, ak as evaluateAgentVerification, al as formatPriceSol, am as formatRate, an as formatSol, ao as moderationStateOf, ap as rootClass, ar as tc, as as toHex, at as truncateAddress, au as useAgentVerification, av as useFocusTrap } from '../index-DUsGVhDz.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tetsuo-ai/marketplace-sdk';
|
|
4
4
|
import '@solana/kit';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge,
|
|
1
|
+
export { e as AgentVerificationReader, f as AgentVerificationReaderOptions, g as AgentVerificationResult, h as AgentVerificationRpc, B as Badge, i as BadgeProps, j as BadgeTone, k as Button, l as ButtonProps, m as ButtonVariant, n as COMPONENT_CATALOG, o as ComponentStringId, D as DEFAULT_TRUST_HREF, p as DisputeBanner, q as DisputeBannerProps, E as EN_COMPONENT_STRINGS, H as HireButton, s as HireButtonProps, t as HireCheckoutListing, u as HireCheckoutModal, v as HireCheckoutModalProps, L as ListingCard, w as ListingCardData, x as ListingCardProps, y as ListingGrid, z as ListingGridProps, M as Modal, F as ModalProps, J as ModerationBadge, K as ModerationBadgeProps, N as ModerationState, P as PoweredByAgenC, O as PoweredByAgenCProps, Q as ProviderCard, S as ProviderCardProps, U as ReferrerDisclosure, W as ReferrerDisclosureProps, X as ReviewPanel, Y as ReviewPanelProps, Z as Spinner, _ as SpinnerProps, $ as StateKind, a0 as StateMessage, a1 as StateMessageProps, a5 as TaskTimeline, a6 as TaskTimelineProps, a7 as ThemableProps, a9 as UNVERIFIED, aa as UseAgentVerificationOptions, ab as UseAgentVerificationResult, ac as VerifiedBadge, ad as VerifiedBadgeProps, ae as agentVerificationReaderFromRpc, af as cx, ag as decodeListingCategory, ah as decodeListingName, ai as decodeListingTags, aj as elementClass, ak as evaluateAgentVerification, al as formatPriceSol, am as formatRate, an as formatSol, ao as moderationStateOf, ap as rootClass, ar as tc, as as toHex, at as truncateAddress, au as useAgentVerification, av as useFocusTrap } from '../index-zLJX8XdK.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tetsuo-ai/marketplace-sdk';
|
|
4
4
|
import '@solana/kit';
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Badge, Button, COMPONENT_CATALOG, DEFAULT_TRUST_HREF, DisputeBanner, EN_COMPONENT_STRINGS, HireButton, HireCheckoutModal, ListingCard, ListingGrid, Modal, ModerationBadge, PoweredByAgenC, ProviderCard, ReferrerDisclosure, ReviewPanel, Spinner, StateMessage, TaskTimeline, VerifiedBadge, cx, decodeListingCategory, decodeListingName, decodeListingTags, elementClass, formatPriceSol, formatRate, formatSol, moderationStateOf, rootClass, tc, toHex, truncateAddress, useFocusTrap } from '../chunk-
|
|
1
|
+
export { Badge, Button, COMPONENT_CATALOG, DEFAULT_TRUST_HREF, DisputeBanner, EN_COMPONENT_STRINGS, HireButton, HireCheckoutModal, ListingCard, ListingGrid, Modal, ModerationBadge, PoweredByAgenC, ProviderCard, ReferrerDisclosure, ReviewPanel, Spinner, StateMessage, TaskTimeline, UNVERIFIED, VerifiedBadge, agentVerificationReaderFromRpc, cx, decodeListingCategory, decodeListingName, decodeListingTags, elementClass, evaluateAgentVerification, formatPriceSol, formatRate, formatSol, moderationStateOf, rootClass, tc, toHex, truncateAddress, useAgentVerification, useFocusTrap } from '../chunk-A7ETZFNH.js';
|
|
2
2
|
import '../chunk-YORZNYZZ.js';
|
|
3
3
|
import '../chunk-GN5DYVN5.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, ButtonHTMLAttributes, HTMLAttributes, RefObject } from 'react';
|
|
2
|
-
import { ListActiveListingsOptions, DecodedProgramAccount, ServiceListing, IndexerListing, IndexerHire, IndexerAgentTrackRecord, MarketplaceClient, ProgramAccountsTransport, CreateIndexerClientOptions, TaskStatus } from '@tetsuo-ai/marketplace-sdk';
|
|
2
|
+
import { ListActiveListingsOptions, DecodedProgramAccount, ServiceListing, IndexerListing, IndexerHire, IndexerAgentTrackRecord, MarketplaceClient, ProgramAccountsTransport, CreateIndexerClientOptions, TaskStatus, fetchMaybeAgentVerification, AgentVerification } from '@tetsuo-ai/marketplace-sdk';
|
|
3
3
|
import { Address, TransactionSigner, Rpc, GetProgramAccountsApi } from '@solana/kit';
|
|
4
4
|
import { e as HireStatus, b as AnyHireInput, i as ReviewStatus, c as DisputeStatus, a as AgentTrackRecord } from './useAgentTrackRecord-BLf1nrbu.cjs';
|
|
5
5
|
|
|
@@ -517,6 +517,10 @@ declare const EN_COMPONENT_STRINGS: {
|
|
|
517
517
|
readonly "components.provider.provisional": "provisional";
|
|
518
518
|
readonly "components.provider.noData": "No track record yet.";
|
|
519
519
|
readonly "components.provider.unavailable": "Track record is unavailable on this read transport.";
|
|
520
|
+
readonly "components.provider.verifiedDomain": "Verified: {domain}";
|
|
521
|
+
readonly "components.provider.verifiedDomainLabel": "Verified domain {domain}";
|
|
522
|
+
readonly "components.provider.claimedDomain": "Claims: {domain}";
|
|
523
|
+
readonly "components.provider.claimedDomainLabel": "Claimed domain {domain} (not verified on-chain)";
|
|
520
524
|
readonly "components.poweredBy.label": "Powered by AgenC";
|
|
521
525
|
readonly "components.poweredBy.trustLink": "Learn how this works";
|
|
522
526
|
};
|
|
@@ -1054,13 +1058,129 @@ interface DisputeBannerProps extends ThemableProps {
|
|
|
1054
1058
|
declare function DisputeBanner({ disputeOpen, onInitiate, status, error, unstyled, className, }: DisputeBannerProps): ReactNode;
|
|
1055
1059
|
|
|
1056
1060
|
/**
|
|
1057
|
-
*
|
|
1061
|
+
* The decoded, projected verification result for an agent — the PINNED P7.3(3)
|
|
1062
|
+
* shape. When no live verification exists this is `{ verified: false }` (the
|
|
1063
|
+
* narrow "absent / revoked / expired" case); otherwise every field is present
|
|
1064
|
+
* and `verified` is `true`.
|
|
1065
|
+
*/
|
|
1066
|
+
type AgentVerificationResult = {
|
|
1067
|
+
/** A live, on-chain, non-revoked, non-expired verification exists. */
|
|
1068
|
+
verified: true;
|
|
1069
|
+
/** The on-chain VERIFIED operator domain (proven, not self-claimed). */
|
|
1070
|
+
domain: string;
|
|
1071
|
+
/** Proof method: `0` = DNS `TXT`, `1` = `.well-known` over HTTPS. */
|
|
1072
|
+
method: number;
|
|
1073
|
+
/** The attestor/authority that recorded this verification. */
|
|
1074
|
+
verifiedBy: Address | string;
|
|
1075
|
+
/** Unix-seconds timestamp the verification was recorded. */
|
|
1076
|
+
verifiedAt: bigint;
|
|
1077
|
+
/** Unix-seconds expiry, or `0n` for no expiry. */
|
|
1078
|
+
expiresAt: bigint;
|
|
1079
|
+
/** Always `false` here (a revoked record is never `verified: true`). */
|
|
1080
|
+
revoked: false;
|
|
1081
|
+
} | {
|
|
1082
|
+
/** No live verification — account absent, revoked, or expired. */
|
|
1083
|
+
verified: false;
|
|
1084
|
+
};
|
|
1085
|
+
/** The unverified sentinel (frozen so callers can compare identity cheaply). */
|
|
1086
|
+
declare const UNVERIFIED: AgentVerificationResult;
|
|
1087
|
+
/**
|
|
1088
|
+
* Decide whether a decoded `AgentVerification` account is a LIVE verification:
|
|
1089
|
+
* it must NOT be revoked AND must not be expired (`expiresAt === 0n` = no
|
|
1090
|
+
* expiry; otherwise `nowSeconds < expiresAt`). Pure + exported so structural
|
|
1091
|
+
* tests assert the revoked/expired/absent boundaries directly.
|
|
1092
|
+
*
|
|
1093
|
+
* @param account - The decoded account, or `null`/`undefined` when absent.
|
|
1094
|
+
* @param nowSeconds - Current unix-seconds (injected for determinism).
|
|
1095
|
+
*/
|
|
1096
|
+
declare function evaluateAgentVerification(account: AgentVerification | null | undefined, nowSeconds: bigint): AgentVerificationResult;
|
|
1097
|
+
/**
|
|
1098
|
+
* A function that resolves the raw verification for an agent PDA to the pinned
|
|
1099
|
+
* result shape. Injected so the hook stays decoupled from any specific read
|
|
1100
|
+
* backend (kit RPC, the storefront track-record endpoint, a test stub).
|
|
1101
|
+
*/
|
|
1102
|
+
type AgentVerificationReader = (agentPda: Address | string) => Promise<AgentVerificationResult>;
|
|
1103
|
+
/** The minimal kit-RPC surface {@link agentVerificationReaderFromRpc} needs. */
|
|
1104
|
+
type AgentVerificationRpc = Parameters<typeof fetchMaybeAgentVerification>[0];
|
|
1105
|
+
/** Options for {@link agentVerificationReaderFromRpc}. */
|
|
1106
|
+
interface AgentVerificationReaderOptions {
|
|
1107
|
+
/**
|
|
1108
|
+
* Clock source (unix seconds) used to evaluate expiry. Defaults to
|
|
1109
|
+
* `Date.now()`-derived; inject a fixed value in tests/SSR for determinism.
|
|
1110
|
+
*/
|
|
1111
|
+
now?: () => bigint;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Build an {@link AgentVerificationReader} over a kit RPC using the SDK's
|
|
1115
|
+
* `findAgentVerificationPda` (the `["agent_verification", agent]` seed) +
|
|
1116
|
+
* `fetchMaybeAgentVerification` (the regenerated decoder). An absent account
|
|
1117
|
+
* yields `{ verified: false }` (never throws on absence).
|
|
1118
|
+
*
|
|
1119
|
+
* @param rpc - A kit RPC capable of `getAccountInfo` (what the SDK fetch needs).
|
|
1120
|
+
* @param options - Optional `now` clock injection.
|
|
1121
|
+
*/
|
|
1122
|
+
declare function agentVerificationReaderFromRpc(rpc: AgentVerificationRpc, options?: AgentVerificationReaderOptions): AgentVerificationReader;
|
|
1123
|
+
/** Options for {@link useAgentVerification}. */
|
|
1124
|
+
interface UseAgentVerificationOptions {
|
|
1125
|
+
/**
|
|
1126
|
+
* The reader that resolves the on-chain verification. When omitted the hook
|
|
1127
|
+
* is inert (returns the unverified result, never queries) — a host opts in by
|
|
1128
|
+
* passing {@link agentVerificationReaderFromRpc} or a custom resolver.
|
|
1129
|
+
*/
|
|
1130
|
+
reader?: AgentVerificationReader;
|
|
1131
|
+
/** Disable the query. Default `true` when `agentPda` and a `reader` are set. */
|
|
1132
|
+
enabled?: boolean;
|
|
1133
|
+
}
|
|
1134
|
+
/** Return value of {@link useAgentVerification}. */
|
|
1135
|
+
interface UseAgentVerificationResult {
|
|
1136
|
+
/** The resolved verification (defaults to the unverified result). */
|
|
1137
|
+
verification: AgentVerificationResult;
|
|
1138
|
+
/** Convenience: `verification.verified`. */
|
|
1139
|
+
verified: boolean;
|
|
1140
|
+
/** True while the verification read is in flight. */
|
|
1141
|
+
isLoading: boolean;
|
|
1142
|
+
/** A read error, or `null`. A failed read is NEVER treated as verified. */
|
|
1143
|
+
error: Error | null;
|
|
1144
|
+
/** Force a refetch. */
|
|
1145
|
+
refetch: () => void;
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Read an agent's on-chain verification (P7.3) into the pinned result shape.
|
|
1149
|
+
*
|
|
1150
|
+
* Defensive by construction: with no `reader`, no resolved data, or a read
|
|
1151
|
+
* error, the result is `{ verified: false }` — an agent is shown verified ONLY
|
|
1152
|
+
* when a live on-chain attestation is actually read back. A self-claimed
|
|
1153
|
+
* `operatorDomain` never reaches this hook.
|
|
1154
|
+
*
|
|
1155
|
+
* @param agentPda - The AgentRegistration PDA (falsy disables the hook).
|
|
1156
|
+
* @param options - The `reader` to resolve with + an `enabled` override.
|
|
1157
|
+
* @returns {@link UseAgentVerificationResult}.
|
|
1158
|
+
*/
|
|
1159
|
+
declare function useAgentVerification(agentPda: Address | string | undefined | null, options?: UseAgentVerificationOptions): UseAgentVerificationResult;
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* `<ProviderCard>` — a provider's reputation + trust summary.
|
|
1058
1163
|
*
|
|
1059
1164
|
* Renders the agent's track record (completion rate, dispute rate, completions,
|
|
1060
|
-
* dispute count
|
|
1061
|
-
* takes the projected `AgentTrackRecord | null` (from
|
|
1062
|
-
* `useAgentTrackRecord().trackRecord`)
|
|
1063
|
-
*
|
|
1165
|
+
* dispute count) plus an on-chain VERIFIED badge and the operator domain.
|
|
1166
|
+
* Presentational: it takes the projected `AgentTrackRecord | null` (from
|
|
1167
|
+
* `useAgentTrackRecord().trackRecord`) and the resolved
|
|
1168
|
+
* `AgentVerificationResult` (from `useAgentVerification().verification`) +
|
|
1169
|
+
* loading/error, so it renders under SSR and in Ladle.
|
|
1170
|
+
*
|
|
1171
|
+
* ## P7.3(3) claimed vs verified — the trust distinction
|
|
1172
|
+
*
|
|
1173
|
+
* The provider may CLAIM an `operatorDomain` in its agent metadata; that is
|
|
1174
|
+
* self-reported and unproven. The trust signal is the on-chain
|
|
1175
|
+
* `AgentVerification` PDA, written by a trusted attestor only after the operator
|
|
1176
|
+
* PROVED domain control. This card NEVER conflates the two:
|
|
1177
|
+
* - a live verification (`verification.verified === true`) renders a "Verified:
|
|
1178
|
+
* <domain>" badge using the ON-CHAIN `verification.domain` (a success pill);
|
|
1179
|
+
* - otherwise, the merely-CLAIMED `operatorDomain` (when supplied) renders as a
|
|
1180
|
+
* visibly distinct "Claims: <domain>" pill — never styled or labelled as
|
|
1181
|
+
* verified.
|
|
1182
|
+
* An unverified claimed domain therefore can never read as verified, even when
|
|
1183
|
+
* the claimed string happens to equal a domain someone else verified.
|
|
1064
1184
|
*
|
|
1065
1185
|
* ## P6.6 honesty
|
|
1066
1186
|
*
|
|
@@ -1077,7 +1197,24 @@ interface ProviderCardProps extends ThemableProps {
|
|
|
1077
1197
|
agent?: Address | string | null;
|
|
1078
1198
|
/** The projected track record (from `useAgentTrackRecord().trackRecord`). */
|
|
1079
1199
|
trackRecord: AgentTrackRecord | null;
|
|
1080
|
-
/**
|
|
1200
|
+
/**
|
|
1201
|
+
* The resolved ON-CHAIN verification (from
|
|
1202
|
+
* `useAgentVerification().verification`). Defaults to the unverified result,
|
|
1203
|
+
* so omitting it renders the provider as NOT verified — verified state is
|
|
1204
|
+
* opt-in and only ever driven by a live attestation.
|
|
1205
|
+
*/
|
|
1206
|
+
verification?: AgentVerificationResult;
|
|
1207
|
+
/**
|
|
1208
|
+
* The provider's CLAIMED operator domain (from agent metadata). Self-reported
|
|
1209
|
+
* and UNPROVEN — shown as a clearly-distinct "claimed" pill, and only when no
|
|
1210
|
+
* on-chain verification supersedes it. Never rendered as verified.
|
|
1211
|
+
*/
|
|
1212
|
+
operatorDomain?: string | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* Deprecated boolean verified flag (pre-P7.3). When `verification` is omitted,
|
|
1215
|
+
* a `true` here still shows the legacy verified badge, but WITHOUT a domain
|
|
1216
|
+
* (no on-chain domain is available from a bare boolean). Prefer `verification`.
|
|
1217
|
+
*/
|
|
1081
1218
|
verified?: boolean;
|
|
1082
1219
|
/** True while loading the track record. */
|
|
1083
1220
|
isLoading?: boolean;
|
|
@@ -1090,9 +1227,9 @@ interface ProviderCardProps extends ThemableProps {
|
|
|
1090
1227
|
onRetry?: () => void;
|
|
1091
1228
|
}
|
|
1092
1229
|
/**
|
|
1093
|
-
* Render a provider reputation card.
|
|
1230
|
+
* Render a provider reputation + trust card.
|
|
1094
1231
|
*/
|
|
1095
|
-
declare function ProviderCard({ agent, trackRecord, verified, isLoading, error, onRetry, unstyled, className, }: ProviderCardProps): ReactNode;
|
|
1232
|
+
declare function ProviderCard({ agent, trackRecord, verification, operatorDomain, verified, isLoading, error, onRetry, unstyled, className, }: ProviderCardProps): ReactNode;
|
|
1096
1233
|
|
|
1097
1234
|
/**
|
|
1098
1235
|
* `<PoweredByAgenC>` — an optional attribution badge linking a trust page.
|
|
@@ -1126,4 +1263,4 @@ interface PoweredByAgenCProps extends ThemableProps {
|
|
|
1126
1263
|
*/
|
|
1127
1264
|
declare function PoweredByAgenC({ href, newTab, label, unstyled, className, }: PoweredByAgenCProps): ReactNode;
|
|
1128
1265
|
|
|
1129
|
-
export { type
|
|
1266
|
+
export { type StateKind as $, type AgencProviderConfig as A, Badge as B, type CreateReadTransportConfig as C, DEFAULT_TRUST_HREF as D, EN_COMPONENT_STRINGS as E, type ModalProps as F, type GpaReadSource as G, HireButton as H, type IndexerConfig as I, ModerationBadge as J, type ModerationBadgeProps as K, ListingCard as L, Modal as M, type ModerationState as N, type PoweredByAgenCProps as O, PoweredByAgenC as P, ProviderCard as Q, type ReferrerCapability as R, type ProviderCardProps as S, type ReadListingResult as T, ReferrerDisclosure as U, type ValidatedReferrerConfig as V, type ReferrerDisclosureProps as W, ReviewPanel as X, type ReviewPanelProps as Y, Spinner as Z, type SpinnerProps as _, type AgencContextValue as a, StateMessage as a0, type StateMessageProps as a1, type StringCatalog as a2, type StringId as a3, type StringVars as a4, TaskTimeline as a5, type TaskTimelineProps as a6, type ThemableProps as a7, type TranslateOptions as a8, UNVERIFIED as a9, type UseAgentVerificationOptions as aa, type UseAgentVerificationResult as ab, VerifiedBadge as ac, type VerifiedBadgeProps as ad, agentVerificationReaderFromRpc as ae, cx as af, decodeListingCategory as ag, decodeListingName as ah, decodeListingTags as ai, elementClass as aj, evaluateAgentVerification as ak, formatPriceSol as al, formatRate as am, formatSol as an, moderationStateOf as ao, rootClass as ap, t as aq, tc as ar, toHex as as, truncateAddress as at, useAgentVerification as au, useFocusTrap as av, type ReferrerConfig as b, type AgencNetwork as c, type ReadTransport as d, type AgentVerificationReader as e, type AgentVerificationReaderOptions as f, type AgentVerificationResult as g, type AgentVerificationRpc as h, type BadgeProps as i, type BadgeTone as j, Button as k, type ButtonProps as l, type ButtonVariant as m, COMPONENT_CATALOG as n, type ComponentStringId as o, DisputeBanner as p, type DisputeBannerProps as q, EN_STRINGS as r, type HireButtonProps as s, type HireCheckoutListing as t, HireCheckoutModal as u, type HireCheckoutModalProps as v, type ListingCardData as w, type ListingCardProps as x, ListingGrid as y, type ListingGridProps as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, ButtonHTMLAttributes, HTMLAttributes, RefObject } from 'react';
|
|
2
|
-
import { ListActiveListingsOptions, DecodedProgramAccount, ServiceListing, IndexerListing, IndexerHire, IndexerAgentTrackRecord, MarketplaceClient, ProgramAccountsTransport, CreateIndexerClientOptions, TaskStatus } from '@tetsuo-ai/marketplace-sdk';
|
|
2
|
+
import { ListActiveListingsOptions, DecodedProgramAccount, ServiceListing, IndexerListing, IndexerHire, IndexerAgentTrackRecord, MarketplaceClient, ProgramAccountsTransport, CreateIndexerClientOptions, TaskStatus, fetchMaybeAgentVerification, AgentVerification } from '@tetsuo-ai/marketplace-sdk';
|
|
3
3
|
import { Address, TransactionSigner, Rpc, GetProgramAccountsApi } from '@solana/kit';
|
|
4
4
|
import { e as HireStatus, b as AnyHireInput, i as ReviewStatus, c as DisputeStatus, a as AgentTrackRecord } from './useAgentTrackRecord-BLf1nrbu.js';
|
|
5
5
|
|
|
@@ -517,6 +517,10 @@ declare const EN_COMPONENT_STRINGS: {
|
|
|
517
517
|
readonly "components.provider.provisional": "provisional";
|
|
518
518
|
readonly "components.provider.noData": "No track record yet.";
|
|
519
519
|
readonly "components.provider.unavailable": "Track record is unavailable on this read transport.";
|
|
520
|
+
readonly "components.provider.verifiedDomain": "Verified: {domain}";
|
|
521
|
+
readonly "components.provider.verifiedDomainLabel": "Verified domain {domain}";
|
|
522
|
+
readonly "components.provider.claimedDomain": "Claims: {domain}";
|
|
523
|
+
readonly "components.provider.claimedDomainLabel": "Claimed domain {domain} (not verified on-chain)";
|
|
520
524
|
readonly "components.poweredBy.label": "Powered by AgenC";
|
|
521
525
|
readonly "components.poweredBy.trustLink": "Learn how this works";
|
|
522
526
|
};
|
|
@@ -1054,13 +1058,129 @@ interface DisputeBannerProps extends ThemableProps {
|
|
|
1054
1058
|
declare function DisputeBanner({ disputeOpen, onInitiate, status, error, unstyled, className, }: DisputeBannerProps): ReactNode;
|
|
1055
1059
|
|
|
1056
1060
|
/**
|
|
1057
|
-
*
|
|
1061
|
+
* The decoded, projected verification result for an agent — the PINNED P7.3(3)
|
|
1062
|
+
* shape. When no live verification exists this is `{ verified: false }` (the
|
|
1063
|
+
* narrow "absent / revoked / expired" case); otherwise every field is present
|
|
1064
|
+
* and `verified` is `true`.
|
|
1065
|
+
*/
|
|
1066
|
+
type AgentVerificationResult = {
|
|
1067
|
+
/** A live, on-chain, non-revoked, non-expired verification exists. */
|
|
1068
|
+
verified: true;
|
|
1069
|
+
/** The on-chain VERIFIED operator domain (proven, not self-claimed). */
|
|
1070
|
+
domain: string;
|
|
1071
|
+
/** Proof method: `0` = DNS `TXT`, `1` = `.well-known` over HTTPS. */
|
|
1072
|
+
method: number;
|
|
1073
|
+
/** The attestor/authority that recorded this verification. */
|
|
1074
|
+
verifiedBy: Address | string;
|
|
1075
|
+
/** Unix-seconds timestamp the verification was recorded. */
|
|
1076
|
+
verifiedAt: bigint;
|
|
1077
|
+
/** Unix-seconds expiry, or `0n` for no expiry. */
|
|
1078
|
+
expiresAt: bigint;
|
|
1079
|
+
/** Always `false` here (a revoked record is never `verified: true`). */
|
|
1080
|
+
revoked: false;
|
|
1081
|
+
} | {
|
|
1082
|
+
/** No live verification — account absent, revoked, or expired. */
|
|
1083
|
+
verified: false;
|
|
1084
|
+
};
|
|
1085
|
+
/** The unverified sentinel (frozen so callers can compare identity cheaply). */
|
|
1086
|
+
declare const UNVERIFIED: AgentVerificationResult;
|
|
1087
|
+
/**
|
|
1088
|
+
* Decide whether a decoded `AgentVerification` account is a LIVE verification:
|
|
1089
|
+
* it must NOT be revoked AND must not be expired (`expiresAt === 0n` = no
|
|
1090
|
+
* expiry; otherwise `nowSeconds < expiresAt`). Pure + exported so structural
|
|
1091
|
+
* tests assert the revoked/expired/absent boundaries directly.
|
|
1092
|
+
*
|
|
1093
|
+
* @param account - The decoded account, or `null`/`undefined` when absent.
|
|
1094
|
+
* @param nowSeconds - Current unix-seconds (injected for determinism).
|
|
1095
|
+
*/
|
|
1096
|
+
declare function evaluateAgentVerification(account: AgentVerification | null | undefined, nowSeconds: bigint): AgentVerificationResult;
|
|
1097
|
+
/**
|
|
1098
|
+
* A function that resolves the raw verification for an agent PDA to the pinned
|
|
1099
|
+
* result shape. Injected so the hook stays decoupled from any specific read
|
|
1100
|
+
* backend (kit RPC, the storefront track-record endpoint, a test stub).
|
|
1101
|
+
*/
|
|
1102
|
+
type AgentVerificationReader = (agentPda: Address | string) => Promise<AgentVerificationResult>;
|
|
1103
|
+
/** The minimal kit-RPC surface {@link agentVerificationReaderFromRpc} needs. */
|
|
1104
|
+
type AgentVerificationRpc = Parameters<typeof fetchMaybeAgentVerification>[0];
|
|
1105
|
+
/** Options for {@link agentVerificationReaderFromRpc}. */
|
|
1106
|
+
interface AgentVerificationReaderOptions {
|
|
1107
|
+
/**
|
|
1108
|
+
* Clock source (unix seconds) used to evaluate expiry. Defaults to
|
|
1109
|
+
* `Date.now()`-derived; inject a fixed value in tests/SSR for determinism.
|
|
1110
|
+
*/
|
|
1111
|
+
now?: () => bigint;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Build an {@link AgentVerificationReader} over a kit RPC using the SDK's
|
|
1115
|
+
* `findAgentVerificationPda` (the `["agent_verification", agent]` seed) +
|
|
1116
|
+
* `fetchMaybeAgentVerification` (the regenerated decoder). An absent account
|
|
1117
|
+
* yields `{ verified: false }` (never throws on absence).
|
|
1118
|
+
*
|
|
1119
|
+
* @param rpc - A kit RPC capable of `getAccountInfo` (what the SDK fetch needs).
|
|
1120
|
+
* @param options - Optional `now` clock injection.
|
|
1121
|
+
*/
|
|
1122
|
+
declare function agentVerificationReaderFromRpc(rpc: AgentVerificationRpc, options?: AgentVerificationReaderOptions): AgentVerificationReader;
|
|
1123
|
+
/** Options for {@link useAgentVerification}. */
|
|
1124
|
+
interface UseAgentVerificationOptions {
|
|
1125
|
+
/**
|
|
1126
|
+
* The reader that resolves the on-chain verification. When omitted the hook
|
|
1127
|
+
* is inert (returns the unverified result, never queries) — a host opts in by
|
|
1128
|
+
* passing {@link agentVerificationReaderFromRpc} or a custom resolver.
|
|
1129
|
+
*/
|
|
1130
|
+
reader?: AgentVerificationReader;
|
|
1131
|
+
/** Disable the query. Default `true` when `agentPda` and a `reader` are set. */
|
|
1132
|
+
enabled?: boolean;
|
|
1133
|
+
}
|
|
1134
|
+
/** Return value of {@link useAgentVerification}. */
|
|
1135
|
+
interface UseAgentVerificationResult {
|
|
1136
|
+
/** The resolved verification (defaults to the unverified result). */
|
|
1137
|
+
verification: AgentVerificationResult;
|
|
1138
|
+
/** Convenience: `verification.verified`. */
|
|
1139
|
+
verified: boolean;
|
|
1140
|
+
/** True while the verification read is in flight. */
|
|
1141
|
+
isLoading: boolean;
|
|
1142
|
+
/** A read error, or `null`. A failed read is NEVER treated as verified. */
|
|
1143
|
+
error: Error | null;
|
|
1144
|
+
/** Force a refetch. */
|
|
1145
|
+
refetch: () => void;
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Read an agent's on-chain verification (P7.3) into the pinned result shape.
|
|
1149
|
+
*
|
|
1150
|
+
* Defensive by construction: with no `reader`, no resolved data, or a read
|
|
1151
|
+
* error, the result is `{ verified: false }` — an agent is shown verified ONLY
|
|
1152
|
+
* when a live on-chain attestation is actually read back. A self-claimed
|
|
1153
|
+
* `operatorDomain` never reaches this hook.
|
|
1154
|
+
*
|
|
1155
|
+
* @param agentPda - The AgentRegistration PDA (falsy disables the hook).
|
|
1156
|
+
* @param options - The `reader` to resolve with + an `enabled` override.
|
|
1157
|
+
* @returns {@link UseAgentVerificationResult}.
|
|
1158
|
+
*/
|
|
1159
|
+
declare function useAgentVerification(agentPda: Address | string | undefined | null, options?: UseAgentVerificationOptions): UseAgentVerificationResult;
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* `<ProviderCard>` — a provider's reputation + trust summary.
|
|
1058
1163
|
*
|
|
1059
1164
|
* Renders the agent's track record (completion rate, dispute rate, completions,
|
|
1060
|
-
* dispute count
|
|
1061
|
-
* takes the projected `AgentTrackRecord | null` (from
|
|
1062
|
-
* `useAgentTrackRecord().trackRecord`)
|
|
1063
|
-
*
|
|
1165
|
+
* dispute count) plus an on-chain VERIFIED badge and the operator domain.
|
|
1166
|
+
* Presentational: it takes the projected `AgentTrackRecord | null` (from
|
|
1167
|
+
* `useAgentTrackRecord().trackRecord`) and the resolved
|
|
1168
|
+
* `AgentVerificationResult` (from `useAgentVerification().verification`) +
|
|
1169
|
+
* loading/error, so it renders under SSR and in Ladle.
|
|
1170
|
+
*
|
|
1171
|
+
* ## P7.3(3) claimed vs verified — the trust distinction
|
|
1172
|
+
*
|
|
1173
|
+
* The provider may CLAIM an `operatorDomain` in its agent metadata; that is
|
|
1174
|
+
* self-reported and unproven. The trust signal is the on-chain
|
|
1175
|
+
* `AgentVerification` PDA, written by a trusted attestor only after the operator
|
|
1176
|
+
* PROVED domain control. This card NEVER conflates the two:
|
|
1177
|
+
* - a live verification (`verification.verified === true`) renders a "Verified:
|
|
1178
|
+
* <domain>" badge using the ON-CHAIN `verification.domain` (a success pill);
|
|
1179
|
+
* - otherwise, the merely-CLAIMED `operatorDomain` (when supplied) renders as a
|
|
1180
|
+
* visibly distinct "Claims: <domain>" pill — never styled or labelled as
|
|
1181
|
+
* verified.
|
|
1182
|
+
* An unverified claimed domain therefore can never read as verified, even when
|
|
1183
|
+
* the claimed string happens to equal a domain someone else verified.
|
|
1064
1184
|
*
|
|
1065
1185
|
* ## P6.6 honesty
|
|
1066
1186
|
*
|
|
@@ -1077,7 +1197,24 @@ interface ProviderCardProps extends ThemableProps {
|
|
|
1077
1197
|
agent?: Address | string | null;
|
|
1078
1198
|
/** The projected track record (from `useAgentTrackRecord().trackRecord`). */
|
|
1079
1199
|
trackRecord: AgentTrackRecord | null;
|
|
1080
|
-
/**
|
|
1200
|
+
/**
|
|
1201
|
+
* The resolved ON-CHAIN verification (from
|
|
1202
|
+
* `useAgentVerification().verification`). Defaults to the unverified result,
|
|
1203
|
+
* so omitting it renders the provider as NOT verified — verified state is
|
|
1204
|
+
* opt-in and only ever driven by a live attestation.
|
|
1205
|
+
*/
|
|
1206
|
+
verification?: AgentVerificationResult;
|
|
1207
|
+
/**
|
|
1208
|
+
* The provider's CLAIMED operator domain (from agent metadata). Self-reported
|
|
1209
|
+
* and UNPROVEN — shown as a clearly-distinct "claimed" pill, and only when no
|
|
1210
|
+
* on-chain verification supersedes it. Never rendered as verified.
|
|
1211
|
+
*/
|
|
1212
|
+
operatorDomain?: string | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* Deprecated boolean verified flag (pre-P7.3). When `verification` is omitted,
|
|
1215
|
+
* a `true` here still shows the legacy verified badge, but WITHOUT a domain
|
|
1216
|
+
* (no on-chain domain is available from a bare boolean). Prefer `verification`.
|
|
1217
|
+
*/
|
|
1081
1218
|
verified?: boolean;
|
|
1082
1219
|
/** True while loading the track record. */
|
|
1083
1220
|
isLoading?: boolean;
|
|
@@ -1090,9 +1227,9 @@ interface ProviderCardProps extends ThemableProps {
|
|
|
1090
1227
|
onRetry?: () => void;
|
|
1091
1228
|
}
|
|
1092
1229
|
/**
|
|
1093
|
-
* Render a provider reputation card.
|
|
1230
|
+
* Render a provider reputation + trust card.
|
|
1094
1231
|
*/
|
|
1095
|
-
declare function ProviderCard({ agent, trackRecord, verified, isLoading, error, onRetry, unstyled, className, }: ProviderCardProps): ReactNode;
|
|
1232
|
+
declare function ProviderCard({ agent, trackRecord, verification, operatorDomain, verified, isLoading, error, onRetry, unstyled, className, }: ProviderCardProps): ReactNode;
|
|
1096
1233
|
|
|
1097
1234
|
/**
|
|
1098
1235
|
* `<PoweredByAgenC>` — an optional attribution badge linking a trust page.
|
|
@@ -1126,4 +1263,4 @@ interface PoweredByAgenCProps extends ThemableProps {
|
|
|
1126
1263
|
*/
|
|
1127
1264
|
declare function PoweredByAgenC({ href, newTab, label, unstyled, className, }: PoweredByAgenCProps): ReactNode;
|
|
1128
1265
|
|
|
1129
|
-
export { type
|
|
1266
|
+
export { type StateKind as $, type AgencProviderConfig as A, Badge as B, type CreateReadTransportConfig as C, DEFAULT_TRUST_HREF as D, EN_COMPONENT_STRINGS as E, type ModalProps as F, type GpaReadSource as G, HireButton as H, type IndexerConfig as I, ModerationBadge as J, type ModerationBadgeProps as K, ListingCard as L, Modal as M, type ModerationState as N, type PoweredByAgenCProps as O, PoweredByAgenC as P, ProviderCard as Q, type ReferrerCapability as R, type ProviderCardProps as S, type ReadListingResult as T, ReferrerDisclosure as U, type ValidatedReferrerConfig as V, type ReferrerDisclosureProps as W, ReviewPanel as X, type ReviewPanelProps as Y, Spinner as Z, type SpinnerProps as _, type AgencContextValue as a, StateMessage as a0, type StateMessageProps as a1, type StringCatalog as a2, type StringId as a3, type StringVars as a4, TaskTimeline as a5, type TaskTimelineProps as a6, type ThemableProps as a7, type TranslateOptions as a8, UNVERIFIED as a9, type UseAgentVerificationOptions as aa, type UseAgentVerificationResult as ab, VerifiedBadge as ac, type VerifiedBadgeProps as ad, agentVerificationReaderFromRpc as ae, cx as af, decodeListingCategory as ag, decodeListingName as ah, decodeListingTags as ai, elementClass as aj, evaluateAgentVerification as ak, formatPriceSol as al, formatRate as am, formatSol as an, moderationStateOf as ao, rootClass as ap, t as aq, tc as ar, toHex as as, truncateAddress as at, useAgentVerification as au, useFocusTrap as av, type ReferrerConfig as b, type AgencNetwork as c, type ReadTransport as d, type AgentVerificationReader as e, type AgentVerificationReaderOptions as f, type AgentVerificationResult as g, type AgentVerificationRpc as h, type BadgeProps as i, type BadgeTone as j, Button as k, type ButtonProps as l, type ButtonVariant as m, COMPONENT_CATALOG as n, type ComponentStringId as o, DisputeBanner as p, type DisputeBannerProps as q, EN_STRINGS as r, type HireButtonProps as s, type HireCheckoutListing as t, HireCheckoutModal as u, type HireCheckoutModalProps as v, type ListingCardData as w, type ListingCardProps as x, ListingGrid as y, type ListingGridProps as z };
|
package/dist/index.cjs
CHANGED
|
@@ -464,6 +464,13 @@ var EN_COMPONENT_STRINGS = {
|
|
|
464
464
|
"components.provider.provisional": "provisional",
|
|
465
465
|
"components.provider.noData": "No track record yet.",
|
|
466
466
|
"components.provider.unavailable": "Track record is unavailable on this read transport.",
|
|
467
|
+
// Domain trust (P7.3) — VERIFIED is an on-chain attestation; CLAIMED is the
|
|
468
|
+
// operator's self-reported metadata. The copy keeps them distinct so a buyer
|
|
469
|
+
// never reads an unverified claim as a proven one.
|
|
470
|
+
"components.provider.verifiedDomain": "Verified: {domain}",
|
|
471
|
+
"components.provider.verifiedDomainLabel": "Verified domain {domain}",
|
|
472
|
+
"components.provider.claimedDomain": "Claims: {domain}",
|
|
473
|
+
"components.provider.claimedDomainLabel": "Claimed domain {domain} (not verified on-chain)",
|
|
467
474
|
// PoweredByAgenC.
|
|
468
475
|
"components.poweredBy.label": "Powered by AgenC",
|
|
469
476
|
"components.poweredBy.trustLink": "Learn how this works"
|
|
@@ -1508,9 +1515,90 @@ function DisputeBanner({
|
|
|
1508
1515
|
) : null
|
|
1509
1516
|
] });
|
|
1510
1517
|
}
|
|
1518
|
+
var UNVERIFIED = Object.freeze({
|
|
1519
|
+
verified: false
|
|
1520
|
+
});
|
|
1521
|
+
function evaluateAgentVerification(account, nowSeconds) {
|
|
1522
|
+
if (!account) return UNVERIFIED;
|
|
1523
|
+
if (account.revoked) return UNVERIFIED;
|
|
1524
|
+
if (account.expiresAt !== 0n && nowSeconds >= account.expiresAt) {
|
|
1525
|
+
return UNVERIFIED;
|
|
1526
|
+
}
|
|
1527
|
+
return {
|
|
1528
|
+
verified: true,
|
|
1529
|
+
domain: account.verifiedDomain,
|
|
1530
|
+
method: account.method,
|
|
1531
|
+
verifiedBy: account.verifiedBy,
|
|
1532
|
+
verifiedAt: account.verifiedAt,
|
|
1533
|
+
expiresAt: account.expiresAt,
|
|
1534
|
+
revoked: false
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
function defaultNow() {
|
|
1538
|
+
return BigInt(Math.floor(Date.now() / 1e3));
|
|
1539
|
+
}
|
|
1540
|
+
function agentVerificationReaderFromRpc(rpc, options) {
|
|
1541
|
+
const now = options?.now ?? defaultNow;
|
|
1542
|
+
return async (agentPda) => {
|
|
1543
|
+
const [pda] = await marketplaceSdk.findAgentVerificationPda({ agent: agentPda });
|
|
1544
|
+
const maybe = await marketplaceSdk.fetchMaybeAgentVerification(rpc, pda);
|
|
1545
|
+
return evaluateAgentVerification(maybe.exists ? maybe.data : null, now());
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
function useAgentVerification(agentPda, options) {
|
|
1549
|
+
const reader = options?.reader;
|
|
1550
|
+
const enabled = (options?.enabled ?? true) && Boolean(agentPda) && Boolean(reader);
|
|
1551
|
+
const query = reactQuery.useQuery({
|
|
1552
|
+
queryKey: ["agenc", "agentVerification", agentPda ? String(agentPda) : ""],
|
|
1553
|
+
enabled,
|
|
1554
|
+
queryFn: async () => {
|
|
1555
|
+
return reader(agentPda);
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
const verification = query.error ? UNVERIFIED : query.data ?? UNVERIFIED;
|
|
1559
|
+
return {
|
|
1560
|
+
verification,
|
|
1561
|
+
verified: verification.verified,
|
|
1562
|
+
isLoading: query.isLoading && enabled,
|
|
1563
|
+
error: query.error ?? null,
|
|
1564
|
+
refetch: () => void query.refetch()
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
function VerifiedDomainBadge({
|
|
1568
|
+
domain,
|
|
1569
|
+
unstyled
|
|
1570
|
+
}) {
|
|
1571
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1572
|
+
Badge,
|
|
1573
|
+
{
|
|
1574
|
+
tone: "success",
|
|
1575
|
+
unstyled,
|
|
1576
|
+
className: unstyled ? void 0 : "agenc-provider__domain agenc-provider__domain--verified",
|
|
1577
|
+
label: tc("components.provider.verifiedDomainLabel", { domain }),
|
|
1578
|
+
children: tc("components.provider.verifiedDomain", { domain })
|
|
1579
|
+
}
|
|
1580
|
+
);
|
|
1581
|
+
}
|
|
1582
|
+
function ClaimedDomainBadge({
|
|
1583
|
+
domain,
|
|
1584
|
+
unstyled
|
|
1585
|
+
}) {
|
|
1586
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1587
|
+
Badge,
|
|
1588
|
+
{
|
|
1589
|
+
tone: "neutral",
|
|
1590
|
+
unstyled,
|
|
1591
|
+
className: unstyled ? void 0 : "agenc-provider__domain agenc-provider__domain--claimed",
|
|
1592
|
+
label: tc("components.provider.claimedDomainLabel", { domain }),
|
|
1593
|
+
children: tc("components.provider.claimedDomain", { domain })
|
|
1594
|
+
}
|
|
1595
|
+
);
|
|
1596
|
+
}
|
|
1511
1597
|
function ProviderCard({
|
|
1512
1598
|
agent,
|
|
1513
1599
|
trackRecord,
|
|
1600
|
+
verification = UNVERIFIED,
|
|
1601
|
+
operatorDomain,
|
|
1514
1602
|
verified = false,
|
|
1515
1603
|
isLoading = false,
|
|
1516
1604
|
error = null,
|
|
@@ -1519,12 +1607,19 @@ function ProviderCard({
|
|
|
1519
1607
|
className
|
|
1520
1608
|
}) {
|
|
1521
1609
|
const cardClass = rootClass("agenc-provider", unstyled, className);
|
|
1610
|
+
const isVerified = verification.verified || verification === UNVERIFIED && verified;
|
|
1611
|
+
const verifiedDomain = verification.verified ? verification.domain : null;
|
|
1612
|
+
const claimed = typeof operatorDomain === "string" && operatorDomain.trim() !== "" ? operatorDomain.trim() : null;
|
|
1613
|
+
const domainBadge = verifiedDomain ? /* @__PURE__ */ jsxRuntime.jsx(VerifiedDomainBadge, { domain: verifiedDomain, unstyled }) : claimed ? /* @__PURE__ */ jsxRuntime.jsx(ClaimedDomainBadge, { domain: claimed, unstyled }) : null;
|
|
1522
1614
|
const header = /* @__PURE__ */ jsxRuntime.jsxs("header", { className: unstyled ? void 0 : "agenc-provider__header", children: [
|
|
1523
1615
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: unstyled ? void 0 : "agenc-provider__id", children: [
|
|
1524
1616
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: unstyled ? void 0 : "agenc-provider__label", children: tc("components.provider.title") }),
|
|
1525
1617
|
agent ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: unstyled ? void 0 : "agenc-provider__pda", children: truncateAddress(agent) }) : null
|
|
1526
1618
|
] }),
|
|
1527
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1619
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: unstyled ? void 0 : "agenc-provider__badges", children: [
|
|
1620
|
+
domainBadge,
|
|
1621
|
+
/* @__PURE__ */ jsxRuntime.jsx(VerifiedBadge, { verified: isVerified, unstyled })
|
|
1622
|
+
] })
|
|
1528
1623
|
] });
|
|
1529
1624
|
if (error) {
|
|
1530
1625
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: cardClass, "aria-label": tc("components.provider.title"), children: [
|
|
@@ -1659,8 +1754,10 @@ exports.ReviewPanel = ReviewPanel;
|
|
|
1659
1754
|
exports.Spinner = Spinner;
|
|
1660
1755
|
exports.StateMessage = StateMessage;
|
|
1661
1756
|
exports.TaskTimeline = TaskTimeline;
|
|
1757
|
+
exports.UNVERIFIED = UNVERIFIED;
|
|
1662
1758
|
exports.VerifiedBadge = VerifiedBadge;
|
|
1663
1759
|
exports.agencThemeStyleTag = agencThemeStyleTag;
|
|
1760
|
+
exports.agentVerificationReaderFromRpc = agentVerificationReaderFromRpc;
|
|
1664
1761
|
exports.createReadTransport = createReadTransport;
|
|
1665
1762
|
exports.cx = cx;
|
|
1666
1763
|
exports.decodeListingCategory = decodeListingCategory;
|
|
@@ -1668,6 +1765,7 @@ exports.decodeListingName = decodeListingName;
|
|
|
1668
1765
|
exports.decodeListingTags = decodeListingTags;
|
|
1669
1766
|
exports.deriveSubscriptionsUrl = deriveSubscriptionsUrl;
|
|
1670
1767
|
exports.elementClass = elementClass;
|
|
1768
|
+
exports.evaluateAgentVerification = evaluateAgentVerification;
|
|
1671
1769
|
exports.formatPriceSol = formatPriceSol;
|
|
1672
1770
|
exports.formatRate = formatRate;
|
|
1673
1771
|
exports.formatSol = formatSol;
|
|
@@ -1684,6 +1782,7 @@ exports.tc = tc;
|
|
|
1684
1782
|
exports.toHex = toHex;
|
|
1685
1783
|
exports.truncateAddress = truncateAddress;
|
|
1686
1784
|
exports.useAgencContext = useAgencContext;
|
|
1785
|
+
exports.useAgentVerification = useAgentVerification;
|
|
1687
1786
|
exports.useFocusTrap = useFocusTrap;
|
|
1688
1787
|
exports.validateReferrerConfig = validateReferrerConfig;
|
|
1689
1788
|
//# sourceMappingURL=index.cjs.map
|