@canton-network/core-wallet-ui-components 1.19.0 → 1.20.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/components/idp-card.d.ts +1 -0
- package/dist/components/idp-card.d.ts.map +1 -1
- package/dist/components/login-form.d.ts +1 -0
- package/dist/components/login-form.d.ts.map +1 -1
- package/dist/components/network-card.d.ts +1 -0
- package/dist/components/network-card.d.ts.map +1 -1
- package/dist/components/transaction-card.d.ts +1 -0
- package/dist/components/transaction-card.d.ts.map +1 -1
- package/dist/components/wallet-picker.d.ts.map +1 -1
- package/dist/error-toast-CKCPRZK8.cjs +3991 -0
- package/dist/error-toast-CKCPRZK8.cjs.map +1 -0
- package/dist/error-toast-CpOdjSpE.js +10598 -0
- package/dist/error-toast-CpOdjSpE.js.map +1 -0
- package/dist/index.cjs +73 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +236 -292
- package/dist/index.js.map +1 -1
- package/dist/internal/error-toast.d.ts.map +1 -1
- package/dist/react/components/LoginForm.d.ts +1 -0
- package/dist/react/components/LoginForm.d.ts.map +1 -1
- package/dist/react/index.cjs +2 -2
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +87 -86
- package/dist/react/index.js.map +1 -1
- package/dist/styles/card.d.ts.map +1 -1
- package/package.json +12 -12
- package/dist/error-toast-By8cEMjq.cjs +0 -4002
- package/dist/error-toast-By8cEMjq.cjs.map +0 -1
- package/dist/error-toast-DQZ4SB72.js +0 -17335
- package/dist/error-toast-DQZ4SB72.js.map +0 -1
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ApiKeyCardElement","ApiKeyFormElement","AppHeaderElement","getLogger","logger","WgErrorPageElement","IdpCardElement","IdpFormComponentElement","WgLoginFormElement","WgMessageDetailElement","NetworkCardElement","NetworkFormElement","React","createComponent","NotFound","NotFoundElement","tagName","elementClass","react","NotFoundElement","React","createComponent","WgPageHeader","WgPageHeaderElement","PageHeader","tagName","elementClass","react","WgPageHeaderElement","WgPaginationElement","WgTransactionCardElement","WgTransactionDetailElement","WgWalletCardElement","WgWalletCreateFormElement","WgWalletEditFormElement","React","createComponent","WgWalletList","WgWalletListElement","WalletList","tagName","elementClass","react","events","onWalletAllocate","onWalletEdit","onWalletSetPrimary","WgWalletListElement","WgWalletsSyncElement","_NetworkForm","_ApiKeyForm","_WgWalletCard","_NotFound","_ApiKeyCard","_WgWalletsSync","_NetworkCard","_WgPagination","_WgLoginForm","_WgErrorPage","_WgWalletCreateForm","_WgMessageDetail","getLogger","_WgTransactionCard","_WgPageHeader","_WgWalletEditForm","_IdpFormComponent","_IdpCard","_WgTransactionDetail","getErrorToastContent","_AppHeader","React","ChevronLeftIcon","ContentCopyIcon","ApiKeyCard","createComponent","Progress","CircularProgress","ApprovalActions","Stack","onReject","Button","disabled","approving","rejecting","signing","onApprove","approveLabel","ApiKeyForm","AppHeader","BackLink","href","label","CardDetailRow","value","isText","Box","Typography","title","muted","action","logger","CopyButton","copied","setCopied","useState","timeoutRef","useRef","useEffect","Tooltip","IconButton","e","onCopy","error","ErrorPage","IdpCard","IdpForm","bounce","LoadingState","i","text","LoginForm","MessageDetail","NetworkCard","NetworkForm","NotFound","PageHeader","Pagination","SigningProviderSelect","loading","signingProviders","hasNoProviders","TextField","onChange","providerId","disabledProviders","Toast","open","setOpen","Snackbar","reason","onExited","Alert","type","buttonText","AlertTitle","message","TransactionCard","TransactionDetail","WalletCard","WalletCreateForm","WalletEditForm","WalletForm","submitting","submitDisabled","onSubmit","submittingLabel","submitLabel","submittingMessage","WalletList","_WgWalletList","WalletsSync","ToastContext","createContext","ToastProvider","toasts","setToasts","nextId","showToast","useCallback","current","options","useMemo","children","theme","toast","id","useToast","context","useContext","useErrorToast","fallback"],"sources":["../../src/react/components/ApiKeyCard.tsx","../../src/react/components/ApprovalActions.tsx","../../src/react/components/ApiKeyForm.tsx","../../src/react/components/AppHeader.tsx","../../src/react/components/BackLink.tsx","../../src/react/components/CardDetailRow.tsx","../../src/react/logger.ts","../../src/react/components/CopyButton.tsx","../../src/react/components/ErrorPage.tsx","../../src/react/components/IdpCard.tsx","../../src/react/components/IdpForm.tsx","../../src/react/components/LoadingState.tsx","../../src/react/components/LoginForm.tsx","../../src/react/components/MessageDetail.tsx","../../src/react/components/NetworkCard.tsx","../../src/react/components/NetworkForm.tsx","../../src/react/components/NotFound.ts","../../src/react/components/PageHeader.ts","../../src/react/components/Pagination.tsx","../../src/react/components/SigningProviderSelect.tsx","../../src/react/components/Toast.tsx","../../src/react/components/TransactionCard.tsx","../../src/react/components/TransactionDetail.tsx","../../src/react/components/WalletCard.tsx","../../src/react/components/WalletCreateForm.tsx","../../src/react/components/WalletEditForm.tsx","../../src/react/components/WalletForm.tsx","../../src/react/components/WalletList.ts","../../src/react/components/WalletsSync.tsx","../../src/react/contexts/ToastContext.ts","../../src/react/contexts/ToastProvider.tsx","../../src/react/hooks/useToast.ts","../../src/react/hooks/useErrorToast.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n ApiKeyCard as ApiKeyCardElement,\n type ApiKeyCardRevokeEvent,\n} from '../../components/api-key-card.js'\n\nexport const ApiKeyCard = createComponent({\n tagName: 'api-key-card',\n elementClass: ApiKeyCardElement,\n react: React,\n events: {\n onRevoke: 'revoke' as EventName<ApiKeyCardRevokeEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Button, CircularProgress, Stack } from '@mui/material'\n\ninterface ApprovalActionsProps {\n /** Called when the approve button is clicked */\n onApprove: () => void\n /** Called when \"Reject\" is clicked. The button is hidden when omitted */\n onReject?: (() => void) | undefined\n /** The approve button's text @default 'Approve' */\n approveLabel?: string\n /** Shows progress on the approve button and disables both buttons @default false */\n approving?: boolean\n /** Shows progress on \"Reject\" and disables both buttons @default false */\n rejecting?: boolean\n /** Shows progress on the approve button and disables it. \"Reject\" stays available, so a request can still be turned down while it is being signed @default false */\n signing?: boolean\n /** Disables both buttons @default false */\n disabled?: boolean\n}\n\nconst Progress = () => (\n <CircularProgress size={16} color=\"inherit\" aria-hidden=\"true\" />\n)\n\n/** The Reject and Approve buttons of an approval page, with their busy states */\nexport const ApprovalActions = ({\n onApprove,\n onReject,\n approveLabel = 'Approve',\n approving = false,\n rejecting = false,\n signing = false,\n disabled = false,\n}: ApprovalActionsProps) => (\n <Stack direction=\"row\" spacing={2}>\n {onReject && (\n <Button\n variant=\"outlined\"\n color=\"error\"\n fullWidth\n disabled={disabled || approving || rejecting}\n startIcon={rejecting ? <Progress /> : undefined}\n onClick={onReject}\n >\n Reject\n </Button>\n )}\n <Button\n variant=\"contained\"\n fullWidth\n disabled={disabled || approving || rejecting || signing}\n startIcon={approving || signing ? <Progress /> : undefined}\n onClick={onApprove}\n >\n {approveLabel}\n </Button>\n </Stack>\n)\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n ApiKeyForm as ApiKeyFormElement,\n type ApiKeyGenerateEvent,\n} from '../../components/api-key-form.js'\n\nexport const ApiKeyForm = createComponent({\n tagName: 'api-key-form',\n elementClass: ApiKeyFormElement,\n react: React,\n events: {\n onApiKeyGenerate: 'api-key-generate' as EventName<ApiKeyGenerateEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n AppHeader as AppHeaderElement,\n type LogoutEvent,\n type CopyDappApiUrlEvent,\n} from '../../components/app-header.js'\n\nexport const AppHeader = createComponent({\n tagName: 'app-header',\n elementClass: AppHeaderElement,\n react: React,\n events: {\n onLogout: 'logout' as EventName<LogoutEvent>,\n onCopyDappApiUrl: 'copy-dapp-api-url' as EventName<CopyDappApiUrlEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Button } from '@mui/material'\nimport ChevronLeftIcon from '@mui/icons-material/ChevronLeft'\n\ninterface BackLinkBaseProps {\n /** @default 'Back' */\n label?: string\n}\n\ninterface BackLinkHrefProps extends BackLinkBaseProps {\n /** Renders a link; navigation goes through the theme's LinkComponent */\n href: string\n onClick?: never\n}\n\ninterface BackLinkClickProps extends BackLinkBaseProps {\n href?: never\n /** Renders a button; the caller decides how to navigate */\n onClick: () => void\n}\n\nexport type BackLinkProps = BackLinkHrefProps | BackLinkClickProps\n\nexport const BackLink = ({ label = 'Back', href, onClick }: BackLinkProps) => (\n <Button\n color=\"inherit\"\n size=\"small\"\n startIcon={<ChevronLeftIcon />}\n {...(href !== undefined ? { href } : { onClick })}\n >\n {label}\n </Button>\n)\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactNode } from 'react'\nimport { Box, Typography } from '@mui/material'\n\ninterface CardDetailRowProps {\n label: string\n /** Text is truncated with an ellipsis; any other node (e.g. chips) is right-aligned and wraps */\n value: ReactNode\n /** Tooltip for a text value. Defaults to the value; set it when `value` is shortened */\n title?: string | undefined\n /** Renders the value in the secondary text colour, e.g. for masked values */\n muted?: boolean\n /** Rendered after the value, e.g. a copy button */\n action?: ReactNode\n}\n\nexport const CardDetailRow = ({\n label,\n value,\n title = typeof value === 'string' ? value : undefined,\n muted = false,\n action,\n}: CardDetailRowProps) => {\n const isText = typeof value === 'string'\n\n return (\n <Box\n sx={{\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n minWidth: 0,\n minHeight: 40,\n }}\n >\n <Typography\n variant=\"body2\"\n noWrap\n sx={{ fontWeight: 'bold', flexShrink: 0, minWidth: '8rem' }}\n >\n {label}\n </Typography>\n <Typography\n variant=\"body2\"\n // A div, so block content such as chips is valid inside it\n component=\"div\"\n noWrap={isText}\n title={isText ? title : undefined}\n color={muted ? 'text.secondary' : 'text.primary'}\n sx={{\n flex: 1,\n minWidth: 0,\n textAlign: 'right',\n ...(!isText && {\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n justifyContent: 'flex-end',\n gap: 0.5,\n }),\n }}\n >\n {value}\n </Typography>\n {action && (\n // Sits above a card's click overlay so the action stays clickable\n <Box sx={{ position: 'relative', zIndex: 1, flexShrink: 0 }}>\n {action}\n </Box>\n )}\n </Box>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { getLogger } from '@logtape/logtape'\n\nexport const logger = getLogger(['core', 'wallet-ui-components/react'])\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { IconButton, Tooltip } from '@mui/material'\nimport { useEffect, useRef, useState } from 'react'\n\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy'\nimport { logger } from '../logger'\n\ninterface CopyButtonProps {\n onCopy?: (value: string) => void\n value: string\n label?: string\n}\n\nexport const CopyButton = ({\n onCopy,\n value,\n label = 'Copy to clipboard',\n}: CopyButtonProps) => {\n const [copied, setCopied] = useState(false)\n const timeoutRef = useRef<ReturnType<typeof setTimeout>>(undefined)\n\n useEffect(() => () => clearTimeout(timeoutRef.current), [])\n\n return (\n <Tooltip title={copied ? 'Copied' : label}>\n <IconButton\n aria-label={label}\n onClick={async (e) => {\n // Don't trigger click handlers of a surrounding card or list item\n e.stopPropagation()\n if (!value) return\n\n try {\n if (navigator.clipboard?.writeText) {\n await navigator.clipboard.writeText(value)\n } else {\n throw new Error(\n 'Browser does not support clipboard functionality.'\n )\n }\n\n if (onCopy !== undefined) onCopy(value)\n\n clearTimeout(timeoutRef.current)\n timeoutRef.current = setTimeout(\n () => setCopied(false),\n 1200\n )\n setCopied(true)\n } catch (error) {\n logger\n .getChild('CopyButton')\n .error('Unable to copy value', { error })\n }\n }}\n >\n <ContentCopyIcon color={copied ? 'success' : 'inherit'} />\n </IconButton>\n </Tooltip>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgErrorPage as WgErrorPageElement,\n type ErrorPageBackEvent,\n type ErrorPageRefreshEvent,\n} from '../../components/error-page.js'\n\nexport const ErrorPage = createComponent({\n tagName: 'wg-error-page',\n elementClass: WgErrorPageElement,\n react: React,\n events: {\n onErrorBack: 'error-back' as EventName<ErrorPageBackEvent>,\n onErrorRefresh: 'error-refresh' as EventName<ErrorPageRefreshEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n IdpCard as IdpCardElement,\n type IdpCardReviewEvent,\n type IdpCardDeleteEvent,\n type IdpCardUpdateEvent,\n} from '../../components/idp-card.js'\n\nexport const IdpCard = createComponent({\n tagName: 'idp-card',\n elementClass: IdpCardElement,\n react: React,\n events: {\n onIdpReview: 'idp-review' as EventName<IdpCardReviewEvent>,\n onDelete: 'delete' as EventName<IdpCardDeleteEvent>,\n onUpdate: 'update' as EventName<IdpCardUpdateEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n IdpFormComponent as IdpFormComponentElement,\n type IdpFormSaveEvent,\n type IdpFormDeleteEvent,\n type IdpFormCancelEvent,\n type IdpFormBackEvent,\n} from '../../components/idp-form.js'\n\nexport const IdpForm = createComponent({\n tagName: 'idp-form',\n elementClass: IdpFormComponentElement,\n react: React,\n events: {\n onIdpFormSave: 'idp-form-save' as EventName<IdpFormSaveEvent>,\n onIdpFormDelete: 'idp-form-delete' as EventName<IdpFormDeleteEvent>,\n onIdpFormCancel: 'idp-form-cancel' as EventName<IdpFormCancelEvent>,\n onIdpFormBack: 'idp-form-back' as EventName<IdpFormBackEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Box, Stack, Typography } from '@mui/material'\nimport { keyframes } from '@mui/material/styles'\n\ninterface LoadingStateProps {\n /** @default 'Loading' */\n text?: string\n}\n\nconst bounce = keyframes`\n 0%, 80%, 100% {\n transform: scale(0.7);\n opacity: 0.4;\n }\n 40% {\n transform: scale(1);\n opacity: 1;\n }\n`\n\nexport const LoadingState = ({ text = 'Loading' }: LoadingStateProps) => (\n <Stack\n role=\"status\"\n aria-live=\"polite\"\n spacing={2}\n sx={{\n minHeight: 180,\n justifyContent: 'center',\n alignItems: 'center',\n p: 3,\n }}\n >\n <Stack direction=\"row\" spacing={1} aria-hidden=\"true\">\n {[0, 1, 2].map((i) => (\n <Box\n key={i}\n sx={{\n width: 8,\n height: 8,\n borderRadius: '50%',\n bgcolor: 'primary.main',\n animation: `${bounce} 1s infinite ease-in-out`,\n animationDelay: `${i * 0.15}s`,\n '@media (prefers-reduced-motion: reduce)': {\n animation: 'none',\n },\n }}\n />\n ))}\n </Stack>\n <Typography variant=\"body1\" color=\"text.secondary\">\n {text}\n </Typography>\n </Stack>\n)\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgLoginForm as WgLoginFormElement,\n type LoginConnectEvent,\n type LoginBackEvent,\n} from '../../components/login-form.js'\n\nexport const LoginForm = createComponent({\n tagName: 'wg-login-form',\n elementClass: WgLoginFormElement,\n react: React,\n events: {\n onLoginConnect: 'login-connect' as EventName<LoginConnectEvent>,\n onLoginBack: 'login-back' as EventName<LoginBackEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgMessageDetail as WgMessageDetailElement,\n type MessageApproveEvent,\n type MessageDeleteEvent,\n} from '../../components/message-detail.js'\n\nexport const MessageDetail = createComponent({\n tagName: 'wg-message-detail',\n elementClass: WgMessageDetailElement,\n react: React,\n events: {\n onMessageApprove: 'message-approve' as EventName<MessageApproveEvent>,\n onMessageDelete: 'message-delete' as EventName<MessageDeleteEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n NetworkCard as NetworkCardElement,\n type NetworkCardReviewEvent,\n type NetworkCardDeleteEvent,\n type NetworkCardUpdateEvent,\n} from '../../components/network-card.js'\n\nexport const NetworkCard = createComponent({\n tagName: 'network-card',\n elementClass: NetworkCardElement,\n react: React,\n events: {\n onNetworkReview: 'network-review' as EventName<NetworkCardReviewEvent>,\n onDelete: 'delete' as EventName<NetworkCardDeleteEvent>,\n onUpdate: 'update' as EventName<NetworkCardUpdateEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n NetworkForm as NetworkFormElement,\n type NetworkEditCancelEvent,\n type NetworkEditSaveEvent,\n type NetworkDeleteEvent,\n} from '../../components/network-form.js'\n\nexport const NetworkForm = createComponent({\n tagName: 'network-form',\n elementClass: NetworkFormElement,\n react: React,\n events: {\n onNetworkEditCancel:\n 'network-edit-cancel' as EventName<NetworkEditCancelEvent>,\n onNetworkEditSave:\n 'network-edit-save' as EventName<NetworkEditSaveEvent>,\n onNetworkDelete: 'network-delete' as EventName<NetworkDeleteEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent } from '@lit/react'\nimport { NotFound as NotFoundElement } from '../../components/not-found.js'\n\nexport const NotFound = createComponent({\n tagName: 'not-found',\n elementClass: NotFoundElement,\n react: React,\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent } from '@lit/react'\nimport { WgPageHeader as WgPageHeaderElement } from '../../components/page-header.js'\n\nexport const PageHeader = createComponent({\n tagName: 'wg-page-header',\n elementClass: WgPageHeaderElement,\n react: React,\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgPagination as WgPaginationElement,\n type PageChangeEvent,\n} from '../../components/pagination.js'\n\nexport const Pagination = createComponent({\n tagName: 'wg-pagination',\n elementClass: WgPaginationElement,\n react: React,\n events: {\n onPageChange: 'page-change' as EventName<PageChangeEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { TextField } from '@mui/material'\n\ninterface SigningProviderSelectProps {\n /** The signing provider ids to choose from. `undefined` while they are loading, which disables the select */\n signingProviders?: string[] | undefined\n /** The selected signing provider id, or '' when none is selected */\n value: string\n onChange: (signingProviderId: string) => void\n /** Disables the select, e.g. while submitting @default false */\n disabled?: boolean\n /** Providers that are listed but can't be chosen */\n disabledProviders?: string[]\n}\n\n/** The signing provider field shared by the wallet create and edit forms */\nexport const SigningProviderSelect = ({\n signingProviders,\n value,\n onChange,\n disabled = false,\n disabledProviders = [],\n}: SigningProviderSelectProps) => {\n const loading = signingProviders === undefined\n const hasNoProviders = signingProviders?.length === 0\n\n return (\n <TextField\n // The id the e2e helpers and the Lit form used\n id=\"signing-provider-id\"\n select\n label=\"Signing Provider\"\n required\n fullWidth\n value={value}\n disabled={disabled || loading || hasNoProviders}\n onChange={(e) => onChange(e.target.value)}\n // A native select: it is what screen readers and e2e tests expect\n slotProps={{\n select: { native: true },\n inputLabel: { shrink: true },\n }}\n >\n <option value=\"\" disabled>\n {loading\n ? 'Loading signing providers...'\n : hasNoProviders\n ? 'No signing providers available'\n : 'Select signing provider'}\n </option>\n {signingProviders?.map((providerId) => (\n <option\n key={providerId}\n value={providerId}\n disabled={disabledProviders.includes(providerId)}\n >\n {providerId}\n </option>\n ))}\n </TextField>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useState } from 'react'\nimport { Alert, AlertTitle, Snackbar } from '@mui/material'\n\nexport type ToastMessageType = 'info' | 'success' | 'error'\n\ninterface ToastProps {\n title: string\n message: string\n /** @default 'error' */\n type?: ToastMessageType\n /** Accessible name of the dismiss button @default 'Dismiss notification' */\n buttonText?: string\n /** How long the toast stays before dismissing itself, in ms */\n autoHideDuration: number\n /** Called once the toast has been dismissed and finished its exit animation */\n onExited?: () => void\n}\n\n/**\n * A single toast. It is not positioned: it renders where it is placed, which\n * lets `ToastProvider` stack several of them. Use `useToast()` to raise toasts\n */\nexport const Toast = ({\n title,\n message,\n type = 'error',\n buttonText = 'Dismiss notification',\n autoHideDuration,\n onExited,\n}: ToastProps) => {\n const [open, setOpen] = useState(true)\n\n return (\n <Snackbar\n open={open}\n autoHideDuration={autoHideDuration}\n onClose={(_event, reason) => {\n // Clicking elsewhere on the page shouldn't dismiss a toast\n if (reason === 'clickaway') return\n setOpen(false)\n }}\n slotProps={{ transition: { onExited: () => onExited?.() } }}\n sx={{ position: 'static', pointerEvents: 'auto' }}\n >\n <Alert\n // Errors interrupt the screen reader, the rest wait their turn\n role={type === 'error' ? 'alert' : 'status'}\n severity={type}\n closeText={buttonText}\n onClose={() => setOpen(false)}\n sx={{ width: '100%' }}\n >\n <AlertTitle>{title}</AlertTitle>\n {message}\n </Alert>\n </Snackbar>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgTransactionCard as WgTransactionCardElement,\n type TransactionCardReviewEvent,\n} from '../../components/transaction-card.js'\n\nexport const TransactionCard = createComponent({\n tagName: 'wg-transaction-card',\n elementClass: WgTransactionCardElement,\n react: React,\n events: {\n onTransactionReview:\n 'transaction-review' as EventName<TransactionCardReviewEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgTransactionDetail as WgTransactionDetailElement,\n type TransactionApproveEvent,\n type TransactionDeleteEvent,\n} from '../../components/transaction-detail.js'\n\nexport const TransactionDetail = createComponent({\n tagName: 'wg-transaction-detail',\n elementClass: WgTransactionDetailElement,\n react: React,\n events: {\n onTransactionApprove:\n 'transaction-approve' as EventName<TransactionApproveEvent>,\n onTransactionDelete:\n 'transaction-delete' as EventName<TransactionDeleteEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgWalletCard as WgWalletCardElement,\n type WalletSetPrimaryEvent,\n type WalletCardEditEvent,\n type WalletAllocateEvent,\n type WalletCardSelectEvent,\n} from '../../components/wallet-card.js'\n\nexport const WalletCard = createComponent({\n tagName: 'wg-wallet-card',\n elementClass: WgWalletCardElement,\n react: React,\n events: {\n onWalletSetPrimary:\n 'wallet-set-primary' as EventName<WalletSetPrimaryEvent>,\n onWalletEdit: 'wallet-edit' as EventName<WalletCardEditEvent>,\n onWalletAllocate: 'wallet-allocate' as EventName<WalletAllocateEvent>,\n onWalletSelect: 'wallet-select' as EventName<WalletCardSelectEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgWalletCreateForm as WgWalletCreateFormElement,\n type WalletCreateEvent,\n} from '../../components/wallet-create-form.js'\nimport type { SigningProviderChangeEvent } from '../../components/wallet-form.js'\n\nexport const WalletCreateForm = createComponent({\n tagName: 'wg-wallet-create-form',\n elementClass: WgWalletCreateFormElement,\n react: React,\n events: {\n onWalletCreate: 'wallet-create' as EventName<WalletCreateEvent>,\n onSigningProviderChange:\n 'signing-provider-change' as EventName<SigningProviderChangeEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgWalletEditForm as WgWalletEditFormElement,\n type WalletEditEvent,\n} from '../../components/wallet-edit-form.js'\nimport type { SigningProviderChangeEvent } from '../../components/wallet-form.js'\n\nexport const WalletEditForm = createComponent({\n tagName: 'wg-wallet-edit-form',\n elementClass: WgWalletEditFormElement,\n react: React,\n events: {\n onWalletEdit: 'wallet-edit' as EventName<WalletEditEvent>,\n onSigningProviderChange:\n 'signing-provider-change' as EventName<SigningProviderChangeEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactNode, SubmitEvent } from 'react'\nimport { Box, Button, CircularProgress, Stack, Typography } from '@mui/material'\n\ninterface WalletFormProps {\n /** The form's fields */\n children: ReactNode\n /** Called when the form is submitted, unless it is disabled or submitting */\n onSubmit: () => void | Promise<void>\n submitLabel: string\n /** Shown on the button while `submitting` */\n submittingLabel: string\n /** Announced below the button while `submitting` */\n submittingMessage: string\n /** Shows a spinner and the submitting texts, and disables the form @default false */\n submitting?: boolean\n /** Disables the submit button, e.g. while options are still loading @default false */\n loading?: boolean\n /** Disables the submit button, e.g. when the fields can't be submitted yet @default false */\n submitDisabled?: boolean\n}\n\n/**\n * The shell of the wallet forms: the fields, and a submit button that shows\n * progress. The create and edit forms put their own fields inside it\n */\nexport const WalletForm = ({\n children,\n onSubmit,\n submitLabel,\n submittingLabel,\n submittingMessage,\n submitting = false,\n loading = false,\n submitDisabled = false,\n}: WalletFormProps) => {\n const disabled = submitting || loading || submitDisabled\n\n const handleSubmit = (e: SubmitEvent) => {\n e.preventDefault()\n if (disabled) return\n void onSubmit()\n }\n\n return (\n <Box\n component=\"form\"\n onSubmit={handleSubmit}\n sx={{ display: 'flex', flexDirection: 'column', height: '100%' }}\n >\n <Stack spacing={2}>{children}</Stack>\n\n <Stack spacing={1} sx={{ mt: 'auto', pt: 3 }}>\n <Button\n type=\"submit\"\n variant=\"contained\"\n fullWidth\n disabled={disabled}\n startIcon={\n submitting ? (\n <CircularProgress\n size={16}\n color=\"inherit\"\n aria-hidden=\"true\"\n />\n ) : undefined\n }\n >\n {submitting ? submittingLabel : submitLabel}\n </Button>\n {submitting && (\n <Typography\n variant=\"body2\"\n color=\"text.secondary\"\n role=\"status\"\n aria-live=\"polite\"\n >\n {submittingMessage}\n </Typography>\n )}\n </Stack>\n </Box>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport { WgWalletList as WgWalletListElement } from '../../components/wallet-list.js'\nimport type {\n WalletAllocateEvent,\n WalletCardEditEvent,\n WalletSetPrimaryEvent,\n} from '../../components/wallet-card.js'\n\nexport const WalletList = createComponent({\n tagName: 'wg-wallet-list',\n elementClass: WgWalletListElement,\n react: React,\n events: {\n onWalletAllocate: 'wallet-allocate' as EventName<WalletAllocateEvent>,\n onWalletEdit: 'wallet-edit' as EventName<WalletCardEditEvent>,\n onWalletSetPrimary:\n 'wallet-set-primary' as EventName<WalletSetPrimaryEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgWalletsSync as WgWalletsSyncElement,\n type WalletsSyncEvent,\n} from '../../components/wallets-sync.js'\n\nexport const WalletsSync = createComponent({\n tagName: 'wg-wallets-sync',\n elementClass: WgWalletsSyncElement,\n react: React,\n events: {\n onWalletsSync: 'wallets-sync' as EventName<WalletsSyncEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { createContext } from 'react'\nimport type { ToastMessageType } from '../components/Toast'\n\nexport interface ToastOptions {\n title: string\n message: string\n /** @default 'error' */\n type?: ToastMessageType\n /** Accessible name of the dismiss button @default 'Dismiss notification' */\n buttonText?: string\n}\n\nexport interface ToastContextValue {\n showToast: (options: ToastOptions) => void\n}\n\nexport const ToastContext = createContext<ToastContextValue | null>(null)\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useCallback, useMemo, useRef, useState, type ReactNode } from 'react'\nimport { Stack } from '@mui/material'\nimport { Toast } from '../components/Toast'\nimport { ToastContext, type ToastOptions } from './ToastContext'\n\ninterface ActiveToast extends ToastOptions {\n id: number\n}\n\ninterface ToastProviderProps {\n children: ReactNode\n /** How long a toast stays before dismissing itself, in ms @default 5000 */\n autoHideDuration?: number\n}\n\n/** Renders the toasts raised through `useToast()` and `useErrorToast()`. Mount it once, near the app root */\nexport const ToastProvider = ({\n children,\n autoHideDuration = 5000,\n}: ToastProviderProps) => {\n const [toasts, setToasts] = useState<ActiveToast[]>([])\n const nextId = useRef(0)\n\n const showToast = useCallback((options: ToastOptions) => {\n setToasts((current) => [\n ...current,\n { ...options, id: nextId.current++ },\n ])\n }, [])\n\n const value = useMemo(() => ({ showToast }), [showToast])\n\n return (\n <ToastContext.Provider value={value}>\n {children}\n {toasts.length > 0 && (\n <Stack\n spacing={1}\n sx={{\n position: 'fixed',\n right: { xs: 16, sm: 20 },\n bottom: { xs: 16, sm: 20 },\n zIndex: (theme) => theme.zIndex.snackbar,\n width: { xs: 'calc(100vw - 32px)', sm: 380 },\n maxWidth: 'calc(100vw - 32px)',\n // Only the toasts take clicks, not the gaps between them\n pointerEvents: 'none',\n }}\n >\n {toasts.map(({ id, ...options }) => (\n <Toast\n key={id}\n {...options}\n autoHideDuration={autoHideDuration}\n onExited={() =>\n setToasts((current) =>\n current.filter((toast) => toast.id !== id)\n )\n }\n />\n ))}\n </Stack>\n )}\n </ToastContext.Provider>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useContext } from 'react'\nimport { ToastContext, type ToastContextValue } from '../contexts/ToastContext'\n\n/** Shows a toast. Must be used inside a `ToastProvider` */\nexport const useToast = (): ToastContextValue => {\n const context = useContext(ToastContext)\n if (!context) {\n throw new Error('useToast must be used within a ToastProvider')\n }\n return context\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useCallback } from 'react'\nimport {\n getErrorToastContent,\n type ErrorToastFallback,\n} from '../../internal/error-toast'\nimport { useToast } from './useToast'\n\nexport type { ErrorToastFallback }\n\n/**\n * Returns a function that shows an error toast for any thrown value, the\n * replacement for `handleErrorToast`. JSON-RPC errors get a readable title\n */\nexport const useErrorToast = (): ((\n e: unknown,\n fallback?: ErrorToastFallback\n) => void) => {\n const { showToast } = useToast()\n\n return useCallback(\n (e: unknown, fallback?: ErrorToastFallback) =>\n showToast({ ...getErrorToastContent(e, fallback), type: 'error' }),\n [showToast]\n )\n}\n"],"mappings":";;;;;;;;;AAUA,IAAayE,IAAaC,EAAgB;CACtC,SAAS;CACT,cAAc1E;CACd,OAAOsE;CACP,QAAQ,EACJ,UAAU,SACd;AACJ,CAAC,GCKKK,UACF,kBAACC,GAAD;CAAkB,MAAM;CAAI,OAAM;CAAU,eAAY;AAAQ,CAAA,GAIvDC,KAAmB,EAC5B,cACA,aACA,kBAAe,WACf,eAAY,IACZ,eAAY,IACZ,aAAU,IACV,cAAW,SAEX,kBAACC,GAAD;CAAO,WAAU;CAAM,SAAS;CAAhC,UAAA,CACKC,KACG,kBAACC,GAAD;EACI,SAAQ;EACR,OAAM;EACN,WAAA;EACA,UAAUC,KAAYC,KAAaC;EACnC,WAAWA,IAAY,kBAACR,GAAD,CAAW,CAAA,IAAI,KAAA;EACtC,SAASI;EACZ,UAAA;CAEO,CAAA,GAEZ,kBAACC,GAAD;EACI,SAAQ;EACR,WAAA;EACA,UAAUC,KAAYC,KAAaC,KAAaC;EAChD,WAAWF,KAAaE,IAAU,kBAACT,GAAD,CAAW,CAAA,IAAI,KAAA;EACjD,SAASU;EAER,UAAAC;CACG,CAAA,CACL;A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,CAAY;CACvC,IAAI,CAACgB,GACD,MAAU,MAAM,8CAA8C;CAElE,OAAOA;AACX,GCGaE,WAGC;CACV,IAAM,EAAE,iBAAcH,EAAS;CAE/B,OAAOR,GACF,GAAY,MACTD,EAAU;EAAE,GAAGnG,EAAqB0C,GAAGsE,CAAQ;EAAG,MAAM;CAAQ,CAAC,GACrE,CAACb,CAAS,CACd;AACJ"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["ApiKeyCardElement","ApiKeyFormElement","AppHeaderElement","getLogger","logger","WgErrorPageElement","IdpCardElement","IdpFormComponentElement","WgLoginFormElement","WgMessageDetailElement","NetworkCardElement","NetworkFormElement","React","createComponent","NotFound","NotFoundElement","tagName","elementClass","react","NotFoundElement","React","createComponent","WgPageHeader","WgPageHeaderElement","PageHeader","tagName","elementClass","react","WgPageHeaderElement","WgPaginationElement","WgTransactionCardElement","WgTransactionDetailElement","WgWalletCardElement","WgWalletCreateFormElement","WgWalletEditFormElement","React","createComponent","WgWalletList","WgWalletListElement","WalletList","tagName","elementClass","react","events","onWalletAllocate","onWalletEdit","onWalletSetPrimary","WgWalletListElement","WgWalletsSyncElement","_NetworkForm","_WgWalletCard","_NotFound","_WgPagination","_WgPageHeader","_NetworkCard","_WgWalletsSync","_IdpCard","_WgErrorPage","_WgLoginForm","_WgWalletCreateForm","_ApiKeyCard","_WgMessageDetail","_WgTransactionCard","_WgWalletEditForm","_ApiKeyForm","_WgTransactionDetail","getErrorToastContent","_AppHeader","_IdpFormComponent","React","ChevronLeftIcon","ContentCopyIcon","ApiKeyCard","createComponent","Progress","CircularProgress","ApprovalActions","Stack","onReject","Button","disabled","approving","rejecting","signing","onApprove","approveLabel","ApiKeyForm","AppHeader","BackLink","href","label","CardDetailRow","value","isText","Box","Typography","title","muted","action","logger","getLogger","CopyButton","copied","setCopied","useState","timeoutRef","useRef","useEffect","Tooltip","IconButton","e","onCopy","error","ErrorPage","IdpCard","IdpForm","bounce","LoadingState","i","text","LoginForm","MessageDetail","NetworkCard","NetworkForm","NotFound","PageHeader","Pagination","SigningProviderSelect","loading","signingProviders","hasNoProviders","TextField","onChange","providerId","disabledProviders","Toast","open","setOpen","Snackbar","reason","onExited","Alert","type","buttonText","AlertTitle","message","TransactionCard","TransactionDetail","WalletCard","WalletCreateForm","WalletEditForm","WalletForm","submitting","submitDisabled","onSubmit","submittingLabel","submitLabel","submittingMessage","WalletList","_WgWalletList","WalletsSync","ToastContext","createContext","ToastProvider","toasts","setToasts","nextId","showToast","useCallback","current","options","useMemo","children","theme","toast","id","useToast","context","useContext","useErrorToast","fallback"],"sources":["../../src/react/components/ApiKeyCard.tsx","../../src/react/components/ApprovalActions.tsx","../../src/react/components/ApiKeyForm.tsx","../../src/react/components/AppHeader.tsx","../../src/react/components/BackLink.tsx","../../src/react/components/CardDetailRow.tsx","../../src/react/logger.ts","../../src/react/components/CopyButton.tsx","../../src/react/components/ErrorPage.tsx","../../src/react/components/IdpCard.tsx","../../src/react/components/IdpForm.tsx","../../src/react/components/LoadingState.tsx","../../src/react/components/LoginForm.tsx","../../src/react/components/MessageDetail.tsx","../../src/react/components/NetworkCard.tsx","../../src/react/components/NetworkForm.tsx","../../src/react/components/NotFound.ts","../../src/react/components/PageHeader.ts","../../src/react/components/Pagination.tsx","../../src/react/components/SigningProviderSelect.tsx","../../src/react/components/Toast.tsx","../../src/react/components/TransactionCard.tsx","../../src/react/components/TransactionDetail.tsx","../../src/react/components/WalletCard.tsx","../../src/react/components/WalletCreateForm.tsx","../../src/react/components/WalletEditForm.tsx","../../src/react/components/WalletForm.tsx","../../src/react/components/WalletList.ts","../../src/react/components/WalletsSync.tsx","../../src/react/contexts/ToastContext.ts","../../src/react/contexts/ToastProvider.tsx","../../src/react/hooks/useToast.ts","../../src/react/hooks/useErrorToast.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n ApiKeyCard as ApiKeyCardElement,\n type ApiKeyCardRevokeEvent,\n} from '../../components/api-key-card.js'\n\nexport const ApiKeyCard = createComponent({\n tagName: 'api-key-card',\n elementClass: ApiKeyCardElement,\n react: React,\n events: {\n onRevoke: 'revoke' as EventName<ApiKeyCardRevokeEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Button, CircularProgress, Stack } from '@mui/material'\n\ninterface ApprovalActionsProps {\n /** Called when the approve button is clicked */\n onApprove: () => void\n /** Called when \"Reject\" is clicked. The button is hidden when omitted */\n onReject?: (() => void) | undefined\n /** The approve button's text @default 'Approve' */\n approveLabel?: string\n /** Shows progress on the approve button and disables both buttons @default false */\n approving?: boolean\n /** Shows progress on \"Reject\" and disables both buttons @default false */\n rejecting?: boolean\n /** Shows progress on the approve button and disables it. \"Reject\" stays available, so a request can still be turned down while it is being signed @default false */\n signing?: boolean\n /** Disables both buttons @default false */\n disabled?: boolean\n}\n\nconst Progress = () => (\n <CircularProgress size={16} color=\"inherit\" aria-hidden=\"true\" />\n)\n\n/** The Reject and Approve buttons of an approval page, with their busy states */\nexport const ApprovalActions = ({\n onApprove,\n onReject,\n approveLabel = 'Approve',\n approving = false,\n rejecting = false,\n signing = false,\n disabled = false,\n}: ApprovalActionsProps) => (\n <Stack direction=\"row\" spacing={2}>\n {onReject && (\n <Button\n variant=\"outlined\"\n color=\"error\"\n fullWidth\n disabled={disabled || approving || rejecting}\n startIcon={rejecting ? <Progress /> : undefined}\n onClick={onReject}\n >\n Reject\n </Button>\n )}\n <Button\n variant=\"contained\"\n fullWidth\n disabled={disabled || approving || rejecting || signing}\n startIcon={approving || signing ? <Progress /> : undefined}\n onClick={onApprove}\n >\n {approveLabel}\n </Button>\n </Stack>\n)\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n ApiKeyForm as ApiKeyFormElement,\n type ApiKeyGenerateEvent,\n} from '../../components/api-key-form.js'\n\nexport const ApiKeyForm = createComponent({\n tagName: 'api-key-form',\n elementClass: ApiKeyFormElement,\n react: React,\n events: {\n onApiKeyGenerate: 'api-key-generate' as EventName<ApiKeyGenerateEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n AppHeader as AppHeaderElement,\n type LogoutEvent,\n type CopyDappApiUrlEvent,\n} from '../../components/app-header.js'\n\nexport const AppHeader = createComponent({\n tagName: 'app-header',\n elementClass: AppHeaderElement,\n react: React,\n events: {\n onLogout: 'logout' as EventName<LogoutEvent>,\n onCopyDappApiUrl: 'copy-dapp-api-url' as EventName<CopyDappApiUrlEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Button } from '@mui/material'\nimport ChevronLeftIcon from '@mui/icons-material/ChevronLeft'\n\ninterface BackLinkBaseProps {\n /** @default 'Back' */\n label?: string\n}\n\ninterface BackLinkHrefProps extends BackLinkBaseProps {\n /** Renders a link; navigation goes through the theme's LinkComponent */\n href: string\n onClick?: never\n}\n\ninterface BackLinkClickProps extends BackLinkBaseProps {\n href?: never\n /** Renders a button; the caller decides how to navigate */\n onClick: () => void\n}\n\nexport type BackLinkProps = BackLinkHrefProps | BackLinkClickProps\n\nexport const BackLink = ({ label = 'Back', href, onClick }: BackLinkProps) => (\n <Button\n color=\"inherit\"\n size=\"small\"\n startIcon={<ChevronLeftIcon />}\n {...(href !== undefined ? { href } : { onClick })}\n >\n {label}\n </Button>\n)\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactNode } from 'react'\nimport { Box, Typography } from '@mui/material'\n\ninterface CardDetailRowProps {\n label: string\n /** Text is truncated with an ellipsis; any other node (e.g. chips) is right-aligned and wraps */\n value: ReactNode\n /** Tooltip for a text value. Defaults to the value; set it when `value` is shortened */\n title?: string | undefined\n /** Renders the value in the secondary text colour, e.g. for masked values */\n muted?: boolean\n /** Rendered after the value, e.g. a copy button */\n action?: ReactNode\n}\n\nexport const CardDetailRow = ({\n label,\n value,\n title = typeof value === 'string' ? value : undefined,\n muted = false,\n action,\n}: CardDetailRowProps) => {\n const isText = typeof value === 'string'\n\n return (\n <Box\n sx={{\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n minWidth: 0,\n minHeight: 40,\n }}\n >\n <Typography\n variant=\"body2\"\n noWrap\n sx={{ fontWeight: 'bold', flexShrink: 0, minWidth: '8rem' }}\n >\n {label}\n </Typography>\n <Typography\n variant=\"body2\"\n // A div, so block content such as chips is valid inside it\n component=\"div\"\n noWrap={isText}\n title={isText ? title : undefined}\n color={muted ? 'text.secondary' : 'text.primary'}\n sx={{\n flex: 1,\n minWidth: 0,\n textAlign: 'right',\n ...(!isText && {\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n justifyContent: 'flex-end',\n gap: 0.5,\n }),\n }}\n >\n {value}\n </Typography>\n {action && (\n // Sits above a card's click overlay so the action stays clickable\n <Box sx={{ position: 'relative', zIndex: 1, flexShrink: 0 }}>\n {action}\n </Box>\n )}\n </Box>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { getLogger } from '@logtape/logtape'\n\nexport const logger = getLogger(['core', 'wallet-ui-components/react'])\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { IconButton, Tooltip } from '@mui/material'\nimport { useEffect, useRef, useState } from 'react'\n\nimport ContentCopyIcon from '@mui/icons-material/ContentCopy'\nimport { logger } from '../logger'\n\ninterface CopyButtonProps {\n onCopy?: (value: string) => void\n value: string\n label?: string\n}\n\nexport const CopyButton = ({\n onCopy,\n value,\n label = 'Copy to clipboard',\n}: CopyButtonProps) => {\n const [copied, setCopied] = useState(false)\n const timeoutRef = useRef<ReturnType<typeof setTimeout>>(undefined)\n\n useEffect(() => () => clearTimeout(timeoutRef.current), [])\n\n return (\n <Tooltip title={copied ? 'Copied' : label}>\n <IconButton\n aria-label={label}\n onClick={async (e) => {\n // Don't trigger click handlers of a surrounding card or list item\n e.stopPropagation()\n if (!value) return\n\n try {\n if (navigator.clipboard?.writeText) {\n await navigator.clipboard.writeText(value)\n } else {\n throw new Error(\n 'Browser does not support clipboard functionality.'\n )\n }\n\n if (onCopy !== undefined) onCopy(value)\n\n clearTimeout(timeoutRef.current)\n timeoutRef.current = setTimeout(\n () => setCopied(false),\n 1200\n )\n setCopied(true)\n } catch (error) {\n logger\n .getChild('CopyButton')\n .error('Unable to copy value', { error })\n }\n }}\n >\n <ContentCopyIcon color={copied ? 'success' : 'inherit'} />\n </IconButton>\n </Tooltip>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgErrorPage as WgErrorPageElement,\n type ErrorPageBackEvent,\n type ErrorPageRefreshEvent,\n} from '../../components/error-page.js'\n\nexport const ErrorPage = createComponent({\n tagName: 'wg-error-page',\n elementClass: WgErrorPageElement,\n react: React,\n events: {\n onErrorBack: 'error-back' as EventName<ErrorPageBackEvent>,\n onErrorRefresh: 'error-refresh' as EventName<ErrorPageRefreshEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n IdpCard as IdpCardElement,\n type IdpCardReviewEvent,\n type IdpCardDeleteEvent,\n type IdpCardUpdateEvent,\n} from '../../components/idp-card.js'\n\nexport const IdpCard = createComponent({\n tagName: 'idp-card',\n elementClass: IdpCardElement,\n react: React,\n events: {\n onIdpReview: 'idp-review' as EventName<IdpCardReviewEvent>,\n onDelete: 'delete' as EventName<IdpCardDeleteEvent>,\n onUpdate: 'update' as EventName<IdpCardUpdateEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n IdpFormComponent as IdpFormComponentElement,\n type IdpFormSaveEvent,\n type IdpFormDeleteEvent,\n type IdpFormCancelEvent,\n type IdpFormBackEvent,\n} from '../../components/idp-form.js'\n\nexport const IdpForm = createComponent({\n tagName: 'idp-form',\n elementClass: IdpFormComponentElement,\n react: React,\n events: {\n onIdpFormSave: 'idp-form-save' as EventName<IdpFormSaveEvent>,\n onIdpFormDelete: 'idp-form-delete' as EventName<IdpFormDeleteEvent>,\n onIdpFormCancel: 'idp-form-cancel' as EventName<IdpFormCancelEvent>,\n onIdpFormBack: 'idp-form-back' as EventName<IdpFormBackEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Box, Stack, Typography } from '@mui/material'\nimport { keyframes } from '@mui/material/styles'\n\ninterface LoadingStateProps {\n /** @default 'Loading' */\n text?: string\n}\n\nconst bounce = keyframes`\n 0%, 80%, 100% {\n transform: scale(0.7);\n opacity: 0.4;\n }\n 40% {\n transform: scale(1);\n opacity: 1;\n }\n`\n\nexport const LoadingState = ({ text = 'Loading' }: LoadingStateProps) => (\n <Stack\n role=\"status\"\n aria-live=\"polite\"\n spacing={2}\n sx={{\n minHeight: 180,\n justifyContent: 'center',\n alignItems: 'center',\n p: 3,\n }}\n >\n <Stack direction=\"row\" spacing={1} aria-hidden=\"true\">\n {[0, 1, 2].map((i) => (\n <Box\n key={i}\n sx={{\n width: 8,\n height: 8,\n borderRadius: '50%',\n bgcolor: 'primary.main',\n animation: `${bounce} 1s infinite ease-in-out`,\n animationDelay: `${i * 0.15}s`,\n '@media (prefers-reduced-motion: reduce)': {\n animation: 'none',\n },\n }}\n />\n ))}\n </Stack>\n <Typography variant=\"body1\" color=\"text.secondary\">\n {text}\n </Typography>\n </Stack>\n)\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgLoginForm as WgLoginFormElement,\n type LoginConnectEvent,\n type LoginBackEvent,\n} from '../../components/login-form.js'\n\nexport type { LoginConnectEvent, LoginBackEvent }\n\nexport const LoginForm = createComponent({\n tagName: 'wg-login-form',\n elementClass: WgLoginFormElement,\n react: React,\n events: {\n onLoginConnect: 'login-connect' as EventName<LoginConnectEvent>,\n onLoginBack: 'login-back' as EventName<LoginBackEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgMessageDetail as WgMessageDetailElement,\n type MessageApproveEvent,\n type MessageDeleteEvent,\n} from '../../components/message-detail.js'\n\nexport const MessageDetail = createComponent({\n tagName: 'wg-message-detail',\n elementClass: WgMessageDetailElement,\n react: React,\n events: {\n onMessageApprove: 'message-approve' as EventName<MessageApproveEvent>,\n onMessageDelete: 'message-delete' as EventName<MessageDeleteEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n NetworkCard as NetworkCardElement,\n type NetworkCardReviewEvent,\n type NetworkCardDeleteEvent,\n type NetworkCardUpdateEvent,\n} from '../../components/network-card.js'\n\nexport const NetworkCard = createComponent({\n tagName: 'network-card',\n elementClass: NetworkCardElement,\n react: React,\n events: {\n onNetworkReview: 'network-review' as EventName<NetworkCardReviewEvent>,\n onDelete: 'delete' as EventName<NetworkCardDeleteEvent>,\n onUpdate: 'update' as EventName<NetworkCardUpdateEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n NetworkForm as NetworkFormElement,\n type NetworkEditCancelEvent,\n type NetworkEditSaveEvent,\n type NetworkDeleteEvent,\n} from '../../components/network-form.js'\n\nexport const NetworkForm = createComponent({\n tagName: 'network-form',\n elementClass: NetworkFormElement,\n react: React,\n events: {\n onNetworkEditCancel:\n 'network-edit-cancel' as EventName<NetworkEditCancelEvent>,\n onNetworkEditSave:\n 'network-edit-save' as EventName<NetworkEditSaveEvent>,\n onNetworkDelete: 'network-delete' as EventName<NetworkDeleteEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent } from '@lit/react'\nimport { NotFound as NotFoundElement } from '../../components/not-found.js'\n\nexport const NotFound = createComponent({\n tagName: 'not-found',\n elementClass: NotFoundElement,\n react: React,\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent } from '@lit/react'\nimport { WgPageHeader as WgPageHeaderElement } from '../../components/page-header.js'\n\nexport const PageHeader = createComponent({\n tagName: 'wg-page-header',\n elementClass: WgPageHeaderElement,\n react: React,\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgPagination as WgPaginationElement,\n type PageChangeEvent,\n} from '../../components/pagination.js'\n\nexport const Pagination = createComponent({\n tagName: 'wg-pagination',\n elementClass: WgPaginationElement,\n react: React,\n events: {\n onPageChange: 'page-change' as EventName<PageChangeEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { TextField } from '@mui/material'\n\ninterface SigningProviderSelectProps {\n /** The signing provider ids to choose from. `undefined` while they are loading, which disables the select */\n signingProviders?: string[] | undefined\n /** The selected signing provider id, or '' when none is selected */\n value: string\n onChange: (signingProviderId: string) => void\n /** Disables the select, e.g. while submitting @default false */\n disabled?: boolean\n /** Providers that are listed but can't be chosen */\n disabledProviders?: string[]\n}\n\n/** The signing provider field shared by the wallet create and edit forms */\nexport const SigningProviderSelect = ({\n signingProviders,\n value,\n onChange,\n disabled = false,\n disabledProviders = [],\n}: SigningProviderSelectProps) => {\n const loading = signingProviders === undefined\n const hasNoProviders = signingProviders?.length === 0\n\n return (\n <TextField\n // The id the e2e helpers and the Lit form used\n id=\"signing-provider-id\"\n select\n label=\"Signing Provider\"\n required\n fullWidth\n value={value}\n disabled={disabled || loading || hasNoProviders}\n onChange={(e) => onChange(e.target.value)}\n // A native select: it is what screen readers and e2e tests expect\n slotProps={{\n select: { native: true },\n inputLabel: { shrink: true },\n }}\n >\n <option value=\"\" disabled>\n {loading\n ? 'Loading signing providers...'\n : hasNoProviders\n ? 'No signing providers available'\n : 'Select signing provider'}\n </option>\n {signingProviders?.map((providerId) => (\n <option\n key={providerId}\n value={providerId}\n disabled={disabledProviders.includes(providerId)}\n >\n {providerId}\n </option>\n ))}\n </TextField>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useState } from 'react'\nimport { Alert, AlertTitle, Snackbar } from '@mui/material'\n\nexport type ToastMessageType = 'info' | 'success' | 'error'\n\ninterface ToastProps {\n title: string\n message: string\n /** @default 'error' */\n type?: ToastMessageType\n /** Accessible name of the dismiss button @default 'Dismiss notification' */\n buttonText?: string\n /** How long the toast stays before dismissing itself, in ms */\n autoHideDuration: number\n /** Called once the toast has been dismissed and finished its exit animation */\n onExited?: () => void\n}\n\n/**\n * A single toast. It is not positioned: it renders where it is placed, which\n * lets `ToastProvider` stack several of them. Use `useToast()` to raise toasts\n */\nexport const Toast = ({\n title,\n message,\n type = 'error',\n buttonText = 'Dismiss notification',\n autoHideDuration,\n onExited,\n}: ToastProps) => {\n const [open, setOpen] = useState(true)\n\n return (\n <Snackbar\n open={open}\n autoHideDuration={autoHideDuration}\n onClose={(_event, reason) => {\n // Clicking elsewhere on the page shouldn't dismiss a toast\n if (reason === 'clickaway') return\n setOpen(false)\n }}\n slotProps={{ transition: { onExited: () => onExited?.() } }}\n sx={{ position: 'static', pointerEvents: 'auto' }}\n >\n <Alert\n // Errors interrupt the screen reader, the rest wait their turn\n role={type === 'error' ? 'alert' : 'status'}\n severity={type}\n closeText={buttonText}\n onClose={() => setOpen(false)}\n sx={{ width: '100%' }}\n >\n <AlertTitle>{title}</AlertTitle>\n {message}\n </Alert>\n </Snackbar>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgTransactionCard as WgTransactionCardElement,\n type TransactionCardReviewEvent,\n} from '../../components/transaction-card.js'\n\nexport const TransactionCard = createComponent({\n tagName: 'wg-transaction-card',\n elementClass: WgTransactionCardElement,\n react: React,\n events: {\n onTransactionReview:\n 'transaction-review' as EventName<TransactionCardReviewEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgTransactionDetail as WgTransactionDetailElement,\n type TransactionApproveEvent,\n type TransactionDeleteEvent,\n} from '../../components/transaction-detail.js'\n\nexport const TransactionDetail = createComponent({\n tagName: 'wg-transaction-detail',\n elementClass: WgTransactionDetailElement,\n react: React,\n events: {\n onTransactionApprove:\n 'transaction-approve' as EventName<TransactionApproveEvent>,\n onTransactionDelete:\n 'transaction-delete' as EventName<TransactionDeleteEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgWalletCard as WgWalletCardElement,\n type WalletSetPrimaryEvent,\n type WalletCardEditEvent,\n type WalletAllocateEvent,\n type WalletCardSelectEvent,\n} from '../../components/wallet-card.js'\n\nexport const WalletCard = createComponent({\n tagName: 'wg-wallet-card',\n elementClass: WgWalletCardElement,\n react: React,\n events: {\n onWalletSetPrimary:\n 'wallet-set-primary' as EventName<WalletSetPrimaryEvent>,\n onWalletEdit: 'wallet-edit' as EventName<WalletCardEditEvent>,\n onWalletAllocate: 'wallet-allocate' as EventName<WalletAllocateEvent>,\n onWalletSelect: 'wallet-select' as EventName<WalletCardSelectEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgWalletCreateForm as WgWalletCreateFormElement,\n type WalletCreateEvent,\n} from '../../components/wallet-create-form.js'\nimport type { SigningProviderChangeEvent } from '../../components/wallet-form.js'\n\nexport const WalletCreateForm = createComponent({\n tagName: 'wg-wallet-create-form',\n elementClass: WgWalletCreateFormElement,\n react: React,\n events: {\n onWalletCreate: 'wallet-create' as EventName<WalletCreateEvent>,\n onSigningProviderChange:\n 'signing-provider-change' as EventName<SigningProviderChangeEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgWalletEditForm as WgWalletEditFormElement,\n type WalletEditEvent,\n} from '../../components/wallet-edit-form.js'\nimport type { SigningProviderChangeEvent } from '../../components/wallet-form.js'\n\nexport const WalletEditForm = createComponent({\n tagName: 'wg-wallet-edit-form',\n elementClass: WgWalletEditFormElement,\n react: React,\n events: {\n onWalletEdit: 'wallet-edit' as EventName<WalletEditEvent>,\n onSigningProviderChange:\n 'signing-provider-change' as EventName<SigningProviderChangeEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactNode, SubmitEvent } from 'react'\nimport { Box, Button, CircularProgress, Stack, Typography } from '@mui/material'\n\ninterface WalletFormProps {\n /** The form's fields */\n children: ReactNode\n /** Called when the form is submitted, unless it is disabled or submitting */\n onSubmit: () => void | Promise<void>\n submitLabel: string\n /** Shown on the button while `submitting` */\n submittingLabel: string\n /** Announced below the button while `submitting` */\n submittingMessage: string\n /** Shows a spinner and the submitting texts, and disables the form @default false */\n submitting?: boolean\n /** Disables the submit button, e.g. while options are still loading @default false */\n loading?: boolean\n /** Disables the submit button, e.g. when the fields can't be submitted yet @default false */\n submitDisabled?: boolean\n}\n\n/**\n * The shell of the wallet forms: the fields, and a submit button that shows\n * progress. The create and edit forms put their own fields inside it\n */\nexport const WalletForm = ({\n children,\n onSubmit,\n submitLabel,\n submittingLabel,\n submittingMessage,\n submitting = false,\n loading = false,\n submitDisabled = false,\n}: WalletFormProps) => {\n const disabled = submitting || loading || submitDisabled\n\n const handleSubmit = (e: SubmitEvent) => {\n e.preventDefault()\n if (disabled) return\n void onSubmit()\n }\n\n return (\n <Box\n component=\"form\"\n onSubmit={handleSubmit}\n sx={{ display: 'flex', flexDirection: 'column', height: '100%' }}\n >\n <Stack spacing={2}>{children}</Stack>\n\n <Stack spacing={1} sx={{ mt: 'auto', pt: 3 }}>\n <Button\n type=\"submit\"\n variant=\"contained\"\n fullWidth\n disabled={disabled}\n startIcon={\n submitting ? (\n <CircularProgress\n size={16}\n color=\"inherit\"\n aria-hidden=\"true\"\n />\n ) : undefined\n }\n >\n {submitting ? submittingLabel : submitLabel}\n </Button>\n {submitting && (\n <Typography\n variant=\"body2\"\n color=\"text.secondary\"\n role=\"status\"\n aria-live=\"polite\"\n >\n {submittingMessage}\n </Typography>\n )}\n </Stack>\n </Box>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport { WgWalletList as WgWalletListElement } from '../../components/wallet-list.js'\nimport type {\n WalletAllocateEvent,\n WalletCardEditEvent,\n WalletSetPrimaryEvent,\n} from '../../components/wallet-card.js'\n\nexport const WalletList = createComponent({\n tagName: 'wg-wallet-list',\n elementClass: WgWalletListElement,\n react: React,\n events: {\n onWalletAllocate: 'wallet-allocate' as EventName<WalletAllocateEvent>,\n onWalletEdit: 'wallet-edit' as EventName<WalletCardEditEvent>,\n onWalletSetPrimary:\n 'wallet-set-primary' as EventName<WalletSetPrimaryEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react'\nimport { createComponent, type EventName } from '@lit/react'\nimport {\n WgWalletsSync as WgWalletsSyncElement,\n type WalletsSyncEvent,\n} from '../../components/wallets-sync.js'\n\nexport const WalletsSync = createComponent({\n tagName: 'wg-wallets-sync',\n elementClass: WgWalletsSyncElement,\n react: React,\n events: {\n onWalletsSync: 'wallets-sync' as EventName<WalletsSyncEvent>,\n },\n})\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { createContext } from 'react'\nimport type { ToastMessageType } from '../components/Toast'\n\nexport interface ToastOptions {\n title: string\n message: string\n /** @default 'error' */\n type?: ToastMessageType\n /** Accessible name of the dismiss button @default 'Dismiss notification' */\n buttonText?: string\n}\n\nexport interface ToastContextValue {\n showToast: (options: ToastOptions) => void\n}\n\nexport const ToastContext = createContext<ToastContextValue | null>(null)\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useCallback, useMemo, useRef, useState, type ReactNode } from 'react'\nimport { Stack } from '@mui/material'\nimport { Toast } from '../components/Toast'\nimport { ToastContext, type ToastOptions } from './ToastContext'\n\ninterface ActiveToast extends ToastOptions {\n id: number\n}\n\ninterface ToastProviderProps {\n children: ReactNode\n /** How long a toast stays before dismissing itself, in ms @default 5000 */\n autoHideDuration?: number\n}\n\n/** Renders the toasts raised through `useToast()` and `useErrorToast()`. Mount it once, near the app root */\nexport const ToastProvider = ({\n children,\n autoHideDuration = 5000,\n}: ToastProviderProps) => {\n const [toasts, setToasts] = useState<ActiveToast[]>([])\n const nextId = useRef(0)\n\n const showToast = useCallback((options: ToastOptions) => {\n setToasts((current) => [\n ...current,\n { ...options, id: nextId.current++ },\n ])\n }, [])\n\n const value = useMemo(() => ({ showToast }), [showToast])\n\n return (\n <ToastContext.Provider value={value}>\n {children}\n {toasts.length > 0 && (\n <Stack\n spacing={1}\n sx={{\n position: 'fixed',\n right: { xs: 16, sm: 20 },\n bottom: { xs: 16, sm: 20 },\n zIndex: (theme) => theme.zIndex.snackbar,\n width: { xs: 'calc(100vw - 32px)', sm: 380 },\n maxWidth: 'calc(100vw - 32px)',\n // Only the toasts take clicks, not the gaps between them\n pointerEvents: 'none',\n }}\n >\n {toasts.map(({ id, ...options }) => (\n <Toast\n key={id}\n {...options}\n autoHideDuration={autoHideDuration}\n onExited={() =>\n setToasts((current) =>\n current.filter((toast) => toast.id !== id)\n )\n }\n />\n ))}\n </Stack>\n )}\n </ToastContext.Provider>\n )\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useContext } from 'react'\nimport { ToastContext, type ToastContextValue } from '../contexts/ToastContext'\n\n/** Shows a toast. Must be used inside a `ToastProvider` */\nexport const useToast = (): ToastContextValue => {\n const context = useContext(ToastContext)\n if (!context) {\n throw new Error('useToast must be used within a ToastProvider')\n }\n return context\n}\n","// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useCallback } from 'react'\nimport {\n getErrorToastContent,\n type ErrorToastFallback,\n} from '../../internal/error-toast'\nimport { useToast } from './useToast'\n\nexport type { ErrorToastFallback }\n\n/**\n * Returns a function that shows an error toast for any thrown value, the\n * replacement for `handleErrorToast`. JSON-RPC errors get a readable title\n */\nexport const useErrorToast = (): ((\n e: unknown,\n fallback?: ErrorToastFallback\n) => void) => {\n const { showToast } = useToast()\n\n return useCallback(\n (e: unknown, fallback?: ErrorToastFallback) =>\n showToast({ ...getErrorToastContent(e, fallback), type: 'error' }),\n [showToast]\n )\n}\n"],"mappings":";;;;;;;;;;AAUA,IAAawE,IAAaC,EAAgB;CACtC,SAAS;CACT,cAAczE;CACd,OAAOqE;CACP,QAAQ,EACJ,UAAU,SACd;AACJ,CAAC,GCKKK,UACF,kBAACC,GAAD;CAAkB,MAAM;CAAI,OAAM;CAAU,eAAY;AAAQ,CAAA,GAIv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S,KACb,kBAACvF,GAAD;GACI,SAAS;GACT,IAAI;IACA,UAAU;IACV,OAAO;KAAE,IAAI;KAAI,IAAI;IAAG;IACxB,QAAQ;KAAE,IAAI;KAAI,IAAI;IAAG;IACzB,SAAS,MAAUgG,EAAM,OAAO;IAChC,OAAO;KAAE,IAAI;KAAsB,IAAI;IAAI;IAC3C,UAAU;IAEV,eAAe;GACnB;GAEC,UAAAT,EAAO,KAAK,EAAE,OAAI,GAAGM,QAClB,kBAACnC,GAAD;IAEI,GAAImC;IACc;IAClB,gBACIL,GAAW,MACPI,EAAQ,QAAQ,MAAUK,EAAM,OAAOC,CAAE,CAC7C;GAEP,GARQA,CAQR,CACJ;EACE,CAAA,CAEQ;;AAE/B,GC7DaC,UAAoC;CAC7C,IAAMC,IAAUC,GAAWjB,CAAY;CACvC,IAAI,CAACgB,GACD,MAAU,MAAM,8CAA8C;CAElE,OAAOA;AACX,GCGaE,WAGC;CACV,IAAM,EAAE,iBAAcH,EAAS;CAE/B,OAAOR,GACF,GAAY,MACTD,EAAU;EAAE,GAAGrG,EAAqB4C,GAAGsE,CAAQ;EAAG,MAAM;CAAQ,CAAC,GACrE,CAACb,CAAS,CACd;AACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/styles/card.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/styles/card.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU,yBAqDtB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canton-network/core-wallet-ui-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Reusable UI components for the Splice wallet",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,32 +34,32 @@
|
|
|
34
34
|
"@mui/icons-material": "^9.5.0",
|
|
35
35
|
"@mui/material": "^9.5.0",
|
|
36
36
|
"@open-wc/testing-helpers": "^3.0.1",
|
|
37
|
-
"@storybook/addon-a11y": "^10.6.
|
|
38
|
-
"@storybook/addon-vitest": "^10.6.
|
|
39
|
-
"@storybook/react-vite": "^10.6.
|
|
37
|
+
"@storybook/addon-a11y": "^10.6.6",
|
|
38
|
+
"@storybook/addon-vitest": "^10.6.6",
|
|
39
|
+
"@storybook/react-vite": "^10.6.6",
|
|
40
40
|
"@testing-library/dom": "^10.4.2",
|
|
41
41
|
"@types/react": "^19.3.0",
|
|
42
42
|
"@types/react-dom": "^19.3.0",
|
|
43
43
|
"@vitest/browser-playwright": "^5.0.5",
|
|
44
44
|
"@vitest/coverage-v8": "^5.0.5",
|
|
45
|
-
"playwright": "^1.
|
|
45
|
+
"playwright": "^1.65.0",
|
|
46
46
|
"react": "^19.3.1",
|
|
47
47
|
"react-dom": "^19.3.1",
|
|
48
48
|
"shadow-dom-testing-library": "^1.14.2",
|
|
49
|
-
"storybook": "^10.6.
|
|
49
|
+
"storybook": "^10.6.6",
|
|
50
50
|
"tsx": "^4.23.15",
|
|
51
51
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
52
|
-
"vite": "^8.3.
|
|
52
|
+
"vite": "^8.3.6",
|
|
53
53
|
"vite-plugin-dts": "^5.1.2",
|
|
54
54
|
"vitest": "^5.0.5"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@lit/react": "^1.0.8",
|
|
58
|
-
"@canton-network/core-rpc-errors": "1.
|
|
59
|
-
"@canton-network/core-tx-visualizer": "1.
|
|
60
|
-
"@canton-network/core-types": "2.
|
|
61
|
-
"@canton-network/core-wallet-store": "1.
|
|
62
|
-
"@canton-network/core-wallet-user-rpc-client": "1.
|
|
58
|
+
"@canton-network/core-rpc-errors": "1.17.0",
|
|
59
|
+
"@canton-network/core-tx-visualizer": "1.17.0",
|
|
60
|
+
"@canton-network/core-types": "2.4.0",
|
|
61
|
+
"@canton-network/core-wallet-store": "1.19.0",
|
|
62
|
+
"@canton-network/core-wallet-user-rpc-client": "1.19.0",
|
|
63
63
|
"@logtape/logtape": "^2.4.1",
|
|
64
64
|
"bootstrap": "^5.3.8",
|
|
65
65
|
"lit": "^3.3.3"
|