diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f6f9ad1c..ff9ac407 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -13,7 +13,7 @@ packages/vaults/* @olsemeno @dmitriiIdentityLabs # @nfid/postmessage-rpc SDK owners packages/postmessage-rpc/* @olekid @dmitriiIdentityLabs @chorniy8pavlo -# @nfid/identity-kit SDK owners +# @nfid/identitykit SDK owners packages/identity-kit/* @olekid @dmitriiIdentityLabs @chorniy8pavlo # identity-kit examples owners diff --git a/.npmrc b/.npmrc index ded82e2f..1560b99c 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -auto-install-peers = true +auto-install-peers = true \ No newline at end of file diff --git a/README.md b/README.md index ae908f8c..fa117786 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This repo includes the following packages/apps: ### Packages -#### `packages/identity-kit`: source code deployed to [@nfid/identity-kit](https://www.npmjs.com/package/@nfid/identity-kit) +#### `packages/identity-kit`: source code deployed to [@nfid/identitykit](https://www.npmjs.com/package/@nfid/identitykit) ### Config diff --git a/docs/pages/_meta.json b/docs/pages/_meta.json index 7154c488..45cf3023 100644 --- a/docs/pages/_meta.json +++ b/docs/pages/_meta.json @@ -6,7 +6,7 @@ "title": "@nfid/embed" }, "identity-kit": { - "title": "@nfid/identity-kit" + "title": "@nfid/identitykit" }, "blog": { "title": "Blog", @@ -26,4 +26,4 @@ } } } -} \ No newline at end of file +} diff --git a/docs/pages/blog/standardizing-icp-wallet-and-identity-interaction-overview.mdx b/docs/pages/blog/standardizing-icp-wallet-and-identity-interaction-overview.mdx index a15b631a..b542a858 100644 --- a/docs/pages/blog/standardizing-icp-wallet-and-identity-interaction-overview.mdx +++ b/docs/pages/blog/standardizing-icp-wallet-and-identity-interaction-overview.mdx @@ -1,7 +1,7 @@ --- title: "The ICP Wallet Standards Series - Overview" description: - "With DFINITY's support, the NFID team will release the open-source tool `@nfid/identity-kit`, to + "With DFINITY's support, the NFID team will release the open-source tool `@nfid/identitykit`, to resolve the wallet compatibility challenges. This package will enable developers to incorporate a broad spectrum of functionalities, paving the way for a more interconnected and efficient application environment." @@ -28,7 +28,7 @@ Plug, Stoic, Me, etc). This difficulty primarily arises from the need to adapt t unique interfaces for user authentication, token transfers, and other identity-related interactions, leading to compatibility issues and delays in development. -With DFINITY's support, the NFID team will release the open-source tool `@nfid/identity-kit`, to +With DFINITY's support, the NFID team will release the open-source tool `@nfid/identitykit`, to resolve those challenges. This package will enable developers to incorporate a broad spectrum of functionalities, paving the way for a more interconnected and efficient application environment. @@ -96,4 +96,4 @@ which meets publicly every two weeks, foundational work by Papers/AirGap, and pr - [Identity and Wallet Standard Working Group](https://github.com/dfinity/wg-identity-authentication) - [Identity & Authentication DFINITY Forum](https://forum.dfinity.org/t/technical-working-group-identity-authentication) -- [Source Code for `@nfid/identity-kit`](https://github.com/internet-identity-labs/nfid) +- [Source Code for `@nfid/identitykit`](https://github.com/internet-identity-labs/nfid) diff --git a/docs/pages/identity-kit.mdx b/docs/pages/identity-kit.mdx index ef39df40..1697691c 100644 --- a/docs/pages/identity-kit.mdx +++ b/docs/pages/identity-kit.mdx @@ -22,8 +22,8 @@ authentication, signatures, and transfers. The following packages are included in this repository: -- `@nfid/identity-kit` - A library to integrate compatible ICP wallets into your application. -- `@nfid/identity-kit/react` - A library containing react specific components for integrating +- `@nfid/identitykit` - A library to integrate compatible ICP wallets into your application. +- `@nfid/identitykit/react` - A library containing react specific components for integrating compatible ICP wallets into your application. ## Usage @@ -31,16 +31,16 @@ The following packages are included in this repository: ### Install -To use a **@nfid/identity-kit**, install the necessary dependencies with the following command: +To use a **@nfid/identitykit**, install the necessary dependencies with the following command: ```sh npm2yarn -npm i @nfid/identity-kit +npm i @nfid/identitykit ``` ### Import the library ```typescript -import { ConnectButton, ConnectModal } from "@nfid/identity-kit" +import { ConnectButton, ConnectModal } from "@nfid/identitykit" ``` diff --git a/docs/pages/identity-kit/icrc-25-signer-interaction-standard.mdx b/docs/pages/identity-kit/icrc-25-signer-interaction-standard.mdx index e3fe9eeb..bd1d39a1 100644 --- a/docs/pages/identity-kit/icrc-25-signer-interaction-standard.mdx +++ b/docs/pages/identity-kit/icrc-25-signer-interaction-standard.mdx @@ -23,14 +23,14 @@ and signers. It specifies a set of messages to facilitate this interaction, ensu secure exchange of information. ICRC-25 aims to create a uniform language for dApps and signers, enhancing interoperability and simplifying the development process. -We invite the community to contribute adapters for other signers to `@nfid/identity-kit`, but you -can also use custom adapters from your own or other external packages. +We invite the community to contribute adapters for other signers to `@nfid/identitykit`, but you can +also use custom adapters from your own or other external packages. ```typescript filename="Import and configure Signer" -import * as IdentityKit from "@nfid/identity-kit" +import * as IdentityKit from "@nfid/identitykit" // adapter contributed to this open source package -import { NFID, II } from "@nfid/identity-kit/adapter" +import { NFID, II } from "@nfid/identitykit/adapter" // bring your own adapter import { CUSTOM } from "@your-package/icrc-25-compatible-signer" diff --git a/examples/react-dapp/package.json b/examples/react-dapp/package.json index 910834d7..d93f1d94 100644 --- a/examples/react-dapp/package.json +++ b/examples/react-dapp/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@codemirror/lang-json": "^6.0.1", - "@nfid/identity-kit": "*", + "@nfid/identitykit": "*", "@radix-ui/themes": "^3.0.5", "@uiw/codemirror-extensions-langs": "^4.22.1", "@uiw/codemirror-theme-basic": "^4.22.1", diff --git a/examples/react-dapp/src/App.tsx b/examples/react-dapp/src/App.tsx index b52aaa52..ad98a1dc 100644 --- a/examples/react-dapp/src/App.tsx +++ b/examples/react-dapp/src/App.tsx @@ -12,7 +12,7 @@ import { SectionContainer } from "./ui/organisms/section-container" import { icrc29StatusSection } from "./data/icrc29_status" import { icrc34SGetDelegationSection } from "./data/icrc34_get_delegation" import { icrc49CallCanisterSection } from "./data/icrc49_call_canister" -import { IdentityKitProvider, IdentityKitTheme } from "@nfid/identity-kit/react" +import { IdentityKitProvider, IdentityKitTheme } from "@nfid/identitykit/react" import { MockedSigner, NFID } from "./signers" import { useTheme } from "next-themes" diff --git a/examples/react-dapp/src/data/icrc25_granted_permissions.tsx b/examples/react-dapp/src/data/icrc25_granted_permissions.tsx index 70dc2b5b..1ae9a594 100644 --- a/examples/react-dapp/src/data/icrc25_granted_permissions.tsx +++ b/examples/react-dapp/src/data/icrc25_granted_permissions.tsx @@ -1,4 +1,4 @@ -import { ICRC25Methods } from "@nfid/identity-kit" +import { ICRC25Methods } from "@nfid/identitykit" import { Method } from "../ui/atoms/method.js" import { ISection } from "../ui/organisms/section.js" diff --git a/examples/react-dapp/src/data/icrc25_request_permissions.tsx b/examples/react-dapp/src/data/icrc25_request_permissions.tsx index 3b6f00d8..336403e6 100644 --- a/examples/react-dapp/src/data/icrc25_request_permissions.tsx +++ b/examples/react-dapp/src/data/icrc25_request_permissions.tsx @@ -1,4 +1,4 @@ -import { ICRC25Methods } from "@nfid/identity-kit" +import { ICRC25Methods } from "@nfid/identitykit" import { Link } from "../ui/atoms/link.js" import { Method } from "../ui/atoms/method.js" import { ISection } from "../ui/organisms/section.js" diff --git a/examples/react-dapp/src/data/icrc25_revoke_permissions.tsx b/examples/react-dapp/src/data/icrc25_revoke_permissions.tsx index 20766189..356d35a6 100644 --- a/examples/react-dapp/src/data/icrc25_revoke_permissions.tsx +++ b/examples/react-dapp/src/data/icrc25_revoke_permissions.tsx @@ -1,4 +1,4 @@ -import { ICRC25Methods } from "@nfid/identity-kit" +import { ICRC25Methods } from "@nfid/identitykit" import { ISection } from "../ui/organisms/section.js" export const basicRequest = { diff --git a/examples/react-dapp/src/data/icrc25_supported_standards.tsx b/examples/react-dapp/src/data/icrc25_supported_standards.tsx index b0094d2b..a9e905b0 100644 --- a/examples/react-dapp/src/data/icrc25_supported_standards.tsx +++ b/examples/react-dapp/src/data/icrc25_supported_standards.tsx @@ -1,4 +1,4 @@ -import { ICRC25Methods } from "@nfid/identity-kit" +import { ICRC25Methods } from "@nfid/identitykit" import { Method } from "../ui/atoms/method.js" import { ISection } from "../ui/organisms/section.js" diff --git a/examples/react-dapp/src/signers.ts b/examples/react-dapp/src/signers.ts index 870193e2..afc310c3 100644 --- a/examples/react-dapp/src/signers.ts +++ b/examples/react-dapp/src/signers.ts @@ -1,4 +1,4 @@ -import { SignerConfig } from "@nfid/identity-kit" +import { SignerConfig } from "@nfid/identitykit" const mockedProviderUrl = import.meta.env.VITE_MOCKED_SIGNER_PROVIDER_URL diff --git a/examples/react-dapp/src/ui/organisms/section.tsx b/examples/react-dapp/src/ui/organisms/section.tsx index d2cb2c6f..aca683a1 100644 --- a/examples/react-dapp/src/ui/organisms/section.tsx +++ b/examples/react-dapp/src/ui/organisms/section.tsx @@ -7,7 +7,7 @@ import { toast } from "react-toastify" import { isValidJSON } from "../../utils/json" import { Button } from "../atoms/button" import { CodeSection } from "../molecules/code-section" -import { useIdentityKit } from "@nfid/identity-kit/react" +import { useIdentityKit } from "@nfid/identitykit/react" import { Actor } from "@dfinity/agent" import { Principal } from "@dfinity/principal" import { getRequestObject } from "../../utils/requests" diff --git a/package-lock.json b/package-lock.json index 3155dc55..8a3682f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -365,7 +365,7 @@ "version": "0.0.0", "dependencies": { "@codemirror/lang-json": "^6.0.1", - "@nfid/identity-kit": "*", + "@nfid/identitykit": "*", "@radix-ui/themes": "^3.0.5", "@uiw/codemirror-extensions-langs": "^4.22.1", "@uiw/codemirror-theme-basic": "^4.22.1", @@ -5571,7 +5571,7 @@ "resolved": "config/eslint-config", "link": true }, - "node_modules/@nfid/identity-kit": { + "node_modules/@nfid/identitykit": { "resolved": "packages/identity-kit", "link": true }, @@ -34830,8 +34830,8 @@ } }, "packages/identity-kit": { - "name": "@nfid/identity-kit", - "version": "0.0.0-alpha.2", + "name": "@nfid/identitykit", + "version": "0.0.0-alpha.0", "license": "MIT", "dependencies": { "@nfid/postmessage-rpc": "*", @@ -34892,7 +34892,7 @@ }, "packages/vaults": { "name": "@nfid/vaults", - "version": "0.0.4-alpha.7", + "version": "0.0.4-alpha.10", "dependencies": { "simple-cbor": "^0.4.1" }, diff --git a/packages/identity-kit/package.json b/packages/identity-kit/package.json index bf7cf748..8c60d9a4 100644 --- a/packages/identity-kit/package.json +++ b/packages/identity-kit/package.json @@ -1,6 +1,6 @@ { - "name": "@nfid/identity-kit", - "version": "0.0.0-alpha.2", + "name": "@nfid/identitykit", + "version": "0.0.0-alpha.0", "license": "MIT", "main": "dist/index.cjs.js", "module": "dist/index.esm.js",