diff --git a/apps/devtool/src/app/_components/ErrorStatus.tsx b/apps/devtool/src/app/_components/ErrorStatus.tsx index 277f90632..1be2bdd78 100644 --- a/apps/devtool/src/app/_components/ErrorStatus.tsx +++ b/apps/devtool/src/app/_components/ErrorStatus.tsx @@ -1,6 +1,6 @@ 'use client' -import { faXmarkCircle } from '@fortawesome/pro-regular-svg-icons' +import { faXmarkCircle } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' const ErrorStatus = ({ label }: { label: string | undefined }) => { diff --git a/apps/devtool/src/app/_components/NavBar.tsx b/apps/devtool/src/app/_components/NavBar.tsx index a4c4a95ac..cbd6a21db 100644 --- a/apps/devtool/src/app/_components/NavBar.tsx +++ b/apps/devtool/src/app/_components/NavBar.tsx @@ -1,6 +1,6 @@ 'use client' -import { faPowerOff, faWallet } from '@fortawesome/pro-regular-svg-icons' +import { faPowerOff, faWallet } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import Image from 'next/image' import Link from 'next/link' diff --git a/apps/devtool/src/app/_components/Playground.tsx b/apps/devtool/src/app/_components/Playground.tsx index a834ecc46..9006b3ef5 100644 --- a/apps/devtool/src/app/_components/Playground.tsx +++ b/apps/devtool/src/app/_components/Playground.tsx @@ -1,6 +1,6 @@ 'use client' -import { faArrowsRotate, faFileSignature } from '@fortawesome/pro-regular-svg-icons' +import { faArrowsRotate, faFileSignature } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { AuthorizationRequest, SendEvaluationResponse, SignatureRequest } from '@narval/armory-sdk' import { EvaluationRequest, hexSchema } from '@narval/policy-engine-shared' diff --git a/apps/devtool/src/app/_components/SuccessStatus.tsx b/apps/devtool/src/app/_components/SuccessStatus.tsx index 86b0c8c35..33482c011 100644 --- a/apps/devtool/src/app/_components/SuccessStatus.tsx +++ b/apps/devtool/src/app/_components/SuccessStatus.tsx @@ -1,6 +1,6 @@ 'use client' -import { faCheckCircle } from '@fortawesome/pro-regular-svg-icons' +import { faCheckCircle } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' const SuccessStatus = ({ label }: { label: string }) => { diff --git a/apps/devtool/src/app/_components/modals/AddUserModal.tsx b/apps/devtool/src/app/_components/modals/AddUserModal.tsx index 7aeec4bbe..c97188100 100644 --- a/apps/devtool/src/app/_components/modals/AddUserModal.tsx +++ b/apps/devtool/src/app/_components/modals/AddUserModal.tsx @@ -1,4 +1,6 @@ -import { faCheckCircle, faChevronDown, faPlus, faSpinner } from '@fortawesome/pro-regular-svg-icons' +'use client' + +import { faCheckCircle, faChevronDown, faPlus, faSpinner } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { CredentialEntity, diff --git a/apps/devtool/src/app/_components/modals/AuthConfigModal.tsx b/apps/devtool/src/app/_components/modals/AuthConfigModal.tsx index d2a7dbed9..6011de4c6 100644 --- a/apps/devtool/src/app/_components/modals/AuthConfigModal.tsx +++ b/apps/devtool/src/app/_components/modals/AuthConfigModal.tsx @@ -1,6 +1,6 @@ 'use client' -import { faGear } from '@fortawesome/pro-regular-svg-icons' +import { faGear } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { useEffect, useState } from 'react' import NarButton from '../../_design-system/NarButton' diff --git a/apps/devtool/src/app/_components/modals/CreateWalletModal.tsx b/apps/devtool/src/app/_components/modals/CreateWalletModal.tsx index fc4d0417f..691ad59a8 100644 --- a/apps/devtool/src/app/_components/modals/CreateWalletModal.tsx +++ b/apps/devtool/src/app/_components/modals/CreateWalletModal.tsx @@ -1,4 +1,6 @@ -import { faCheckCircle, faPlus, faSpinner } from '@fortawesome/pro-regular-svg-icons' +'use client' + +import { faCheckCircle, faPlus, faSpinner } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { DeriveWalletResponse, GenerateKeyResponse, PublicWallet } from '@narval/armory-sdk' import { AccountType, Entities, hexSchema } from '@narval/policy-engine-shared' diff --git a/apps/devtool/src/app/_components/modals/DataStoreConfigModal.tsx b/apps/devtool/src/app/_components/modals/DataStoreConfigModal.tsx index c6811e706..0a268550b 100644 --- a/apps/devtool/src/app/_components/modals/DataStoreConfigModal.tsx +++ b/apps/devtool/src/app/_components/modals/DataStoreConfigModal.tsx @@ -1,6 +1,6 @@ 'use client' -import { faGear } from '@fortawesome/pro-regular-svg-icons' +import { faGear } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { useEffect, useState } from 'react' import NarButton from '../../_design-system/NarButton' diff --git a/apps/devtool/src/app/_components/modals/EngineConfigModal.tsx b/apps/devtool/src/app/_components/modals/EngineConfigModal.tsx index ff748d785..76576213e 100644 --- a/apps/devtool/src/app/_components/modals/EngineConfigModal.tsx +++ b/apps/devtool/src/app/_components/modals/EngineConfigModal.tsx @@ -1,6 +1,6 @@ 'use client' -import { faGear } from '@fortawesome/pro-regular-svg-icons' +import { faGear } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { useEffect, useState } from 'react' import NarButton from '../../_design-system/NarButton' diff --git a/apps/devtool/src/app/_components/modals/ImportWalletModal.tsx b/apps/devtool/src/app/_components/modals/ImportWalletModal.tsx index 71127b9b5..1a1d26412 100644 --- a/apps/devtool/src/app/_components/modals/ImportWalletModal.tsx +++ b/apps/devtool/src/app/_components/modals/ImportWalletModal.tsx @@ -1,4 +1,6 @@ -import { faCheckCircle, faSpinner, faUpload } from '@fortawesome/pro-regular-svg-icons' +'use client' + +import { faCheckCircle, faSpinner, faUpload } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { ImportPrivateKeyResponse, ImportSeedResponse } from '@narval/armory-sdk' import { AccountType, Entities, hexSchema } from '@narval/policy-engine-shared' diff --git a/apps/devtool/src/app/_design-system/NarCheckbox.tsx b/apps/devtool/src/app/_design-system/NarCheckbox.tsx index 8b3c034f2..6a550e0b1 100644 --- a/apps/devtool/src/app/_design-system/NarCheckbox.tsx +++ b/apps/devtool/src/app/_design-system/NarCheckbox.tsx @@ -1,4 +1,4 @@ -import { faCheck } from '@fortawesome/pro-regular-svg-icons' +import { faCheck } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import * as Checkbox from '@radix-ui/react-checkbox' import { FC, MouseEvent } from 'react' diff --git a/apps/devtool/src/app/_design-system/NarCollapsible.tsx b/apps/devtool/src/app/_design-system/NarCollapsible.tsx index 1f4706701..b45d9119f 100644 --- a/apps/devtool/src/app/_design-system/NarCollapsible.tsx +++ b/apps/devtool/src/app/_design-system/NarCollapsible.tsx @@ -1,4 +1,4 @@ -import { faChevronDown, faChevronUp } from '@fortawesome/pro-regular-svg-icons' +import { faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons' import * as Collapsible from '@radix-ui/react-collapsible' import { FC, ReactNode, useState } from 'react' import { classNames } from '../_lib/utils' diff --git a/apps/devtool/src/app/_design-system/NarCopyButton.tsx b/apps/devtool/src/app/_design-system/NarCopyButton.tsx index 7b1d64d8d..d4ede2f66 100644 --- a/apps/devtool/src/app/_design-system/NarCopyButton.tsx +++ b/apps/devtool/src/app/_design-system/NarCopyButton.tsx @@ -1,4 +1,4 @@ -import { faCheck, faCopy } from '@fortawesome/pro-regular-svg-icons' +import { faCheck, faCopy } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { FC, useState } from 'react' import { classNames } from '../_lib/utils' diff --git a/apps/devtool/src/app/_design-system/NarDialog.tsx b/apps/devtool/src/app/_design-system/NarDialog.tsx index 9a88c6463..7a3869009 100644 --- a/apps/devtool/src/app/_design-system/NarDialog.tsx +++ b/apps/devtool/src/app/_design-system/NarDialog.tsx @@ -1,4 +1,4 @@ -import { faSpinner, faXmark } from '@fortawesome/pro-regular-svg-icons' +import { faSpinner, faXmark } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import * as Dialog from '@radix-ui/react-dialog' import { FC, ReactNode } from 'react' diff --git a/apps/devtool/src/app/_design-system/NarDropdownMenu.tsx b/apps/devtool/src/app/_design-system/NarDropdownMenu.tsx index f9db19078..d580b5817 100644 --- a/apps/devtool/src/app/_design-system/NarDropdownMenu.tsx +++ b/apps/devtool/src/app/_design-system/NarDropdownMenu.tsx @@ -1,4 +1,4 @@ -import { faChevronDown, faSearch, faSpinnerThird } from '@fortawesome/pro-regular-svg-icons' +import { faChevronDown, faSearch, faSpinner } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import * as DropdownMenu from '@radix-ui/react-dropdown-menu' import { ALIGN_OPTIONS, SIDE_OPTIONS } from '@radix-ui/react-popper' @@ -83,7 +83,7 @@ const NarDropdownMenu: FC = ({ )} {!data && (
- +
)}
= ({ children, buttons, onEdit, onDelete }) =>
{children}
{buttons} - +
diff --git a/apps/devtool/src/app/data-store/_components/layouts/DataSection.tsx b/apps/devtool/src/app/data-store/_components/layouts/DataSection.tsx index 232f003ea..8c62055de 100644 --- a/apps/devtool/src/app/data-store/_components/layouts/DataSection.tsx +++ b/apps/devtool/src/app/data-store/_components/layouts/DataSection.tsx @@ -1,6 +1,6 @@ 'use client' -import { faPlus } from '@fortawesome/pro-regular-svg-icons' +import { faPlus } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { capitalize } from 'lodash' import { FC, ReactNode } from 'react' diff --git a/apps/devtool/src/app/data-store/_components/sections/Wallets.tsx b/apps/devtool/src/app/data-store/_components/sections/Wallets.tsx index 479d2fb7d..7ae0cd472 100644 --- a/apps/devtool/src/app/data-store/_components/sections/Wallets.tsx +++ b/apps/devtool/src/app/data-store/_components/sections/Wallets.tsx @@ -1,6 +1,6 @@ 'use client' -import { faUpload, faUserPlus } from '@fortawesome/pro-regular-svg-icons' +import { faUpload, faUserPlus } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { Address, Namespace, UserWalletEntity, WalletEntity, toAccountId } from '@narval/policy-engine-shared' import { groupBy } from 'lodash' @@ -29,7 +29,7 @@ interface WalletsProps { const Wallets: FC = ({ wallets, userWallets, onChange }) => { const { vaultUrl, vaultClientId } = useStore() - const { importPrivateKey } = useVaultApi() + const { importPk } = useVaultApi() const [isDialogOpen, setIsDialogOpen] = useState(false) const [isImportForm, setIsImportForm] = useState(false) const [isWalletForm, setIsWalletForm] = useState(false) @@ -105,13 +105,13 @@ const Wallets: FC = ({ wallets, userWallets, onChange }) => { onChange(wallets.filter((wallet) => wallet.id !== id)) } - const handleImport = async (accesToken: string) => { - const wallet = await importPrivateKey(vaultUrl, vaultClientId, { privateKey }, accesToken) - if (!wallet) return - const newWallets = wallets ? [...wallets] : [] - newWallets.push({ ...wallet, address: wallet.address.toLowerCase() as Address, accountType: 'eoa' }) - onChange(newWallets) - } + // const handleImport = async (accesToken: string) => { + // const wallet = await importPk({ privateKey, accesToken }) + // if (!wallet) return + // const newWallets = wallets ? [...wallets] : [] + // newWallets.push({ ...wallet, address: wallet.address.toLowerCase() as Address, accountType: 'eoa' }) + // onChange(newWallets) + // } const onSaveDialog = async () => { if (isWalletForm) { diff --git a/package-lock.json b/package-lock.json index 031c918fd..a07dea025 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,8 @@ "@docusaurus/core": "3.1.1", "@docusaurus/preset-classic": "3.1.1", "@docusaurus/theme-mermaid": "3.1.1", - "@fortawesome/pro-regular-svg-icons": "^6.5.1", + "@fortawesome/free-regular-svg-icons": "^6.5.1", + "@fortawesome/free-solid-svg-icons": "6.5.2", "@fortawesome/react-fontawesome": "^0.2.0", "@mdx-js/react": "^3.0.0", "@monaco-editor/react": "^4.6.0", @@ -5590,14 +5591,6 @@ "version": "0.2.1", "license": "MIT" }, - "node_modules/@fortawesome/fontawesome-common-types": { - "version": "6.5.1", - "hasInstallScript": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/@fortawesome/fontawesome-svg-core": { "version": "6.5.2", "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-svg-core/-/6.5.2/fontawesome-svg-core-6.5.2.tgz", @@ -5621,17 +5614,48 @@ "node": ">=6" } }, - "node_modules/@fortawesome/pro-regular-svg-icons": { - "version": "6.5.1", + "node_modules/@fortawesome/free-regular-svg-icons": { + "version": "6.5.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/free-regular-svg-icons/-/6.5.2/free-regular-svg-icons-6.5.2.tgz", + "integrity": "sha512-iabw/f5f8Uy2nTRtJ13XZTS1O5+t+anvlamJ3zJGLEVE2pKsAWhPv2lq01uQlfgCX7VaveT3EVs515cCN9jRbw==", "hasInstallScript": true, - "license": "UNLICENSED", "dependencies": { - "@fortawesome/fontawesome-common-types": "6.5.1" + "@fortawesome/fontawesome-common-types": "6.5.2" }, "engines": { "node": ">=6" } }, + "node_modules/@fortawesome/free-regular-svg-icons/node_modules/@fortawesome/fontawesome-common-types": { + "version": "6.5.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/6.5.2/fontawesome-common-types-6.5.2.tgz", + "integrity": "sha512-gBxPg3aVO6J0kpfHNILc+NMhXnqHumFxOmjYCFfOiLZfwhnnfhtsdA2hfJlDnj+8PjAs6kKQPenOTKj3Rf7zHw==", + "hasInstallScript": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-solid-svg-icons": { + "version": "6.5.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/free-solid-svg-icons/-/6.5.2/free-solid-svg-icons-6.5.2.tgz", + "integrity": "sha512-QWFZYXFE7O1Gr1dTIp+D6UcFUF0qElOnZptpi7PBUMylJh+vFmIedVe1Ir6RM1t2tEQLLSV1k7bR4o92M+uqlw==", + "hasInstallScript": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.5.2" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-solid-svg-icons/node_modules/@fortawesome/fontawesome-common-types": { + "version": "6.5.2", + "resolved": "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/6.5.2/fontawesome-common-types-6.5.2.tgz", + "integrity": "sha512-gBxPg3aVO6J0kpfHNILc+NMhXnqHumFxOmjYCFfOiLZfwhnnfhtsdA2hfJlDnj+8PjAs6kKQPenOTKj3Rf7zHw==", + "hasInstallScript": true, + "engines": { + "node": ">=6" + } + }, "node_modules/@fortawesome/react-fontawesome": { "version": "0.2.0", "license": "MIT", diff --git a/package.json b/package.json index a2273cbf3..bf571313b 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,8 @@ "@docusaurus/core": "3.1.1", "@docusaurus/preset-classic": "3.1.1", "@docusaurus/theme-mermaid": "3.1.1", - "@fortawesome/pro-regular-svg-icons": "^6.5.1", + "@fortawesome/free-regular-svg-icons": "^6.5.1", + "@fortawesome/free-solid-svg-icons": "6.5.2", "@fortawesome/react-fontawesome": "^0.2.0", "@mdx-js/react": "^3.0.0", "@monaco-editor/react": "^4.6.0",