From 33da7f147860b41804e7d4f3c9ea071a578cab4d Mon Sep 17 00:00:00 2001 From: Miguel Piedrafita Date: Thu, 30 Nov 2023 19:27:42 +0000 Subject: [PATCH 1/2] fix `@worldcoin/idkit/internal` import --- .github/workflows/ci.yml | 2 +- README.md | 8 ++++---- examples/with-next/README.md | 4 ++-- packages/react/package.json | 11 +++++++++++ release-please-config.json | 7 +------ 5 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a44185e9..4d3213e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - name: Typecheck & Build run: pnpm build - + # NOTE: Lint needs to run after build because it checks the compiled files for types - name: Lint run: pnpm lint diff --git a/README.md b/README.md index c2ddebcf..d153cdd3 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,13 @@ import { IDKitWidget } from "@worldcoin/idkit"; If you are not using React or want to look at additional options (like rendering the component without any children), the `useIDKit` hook and more, head over to the [docs](https://docs.worldcoin.org/idkit/reference). ```jsx -import { useIDKit } from "@worldcoin/idkit"; +import { useIDKit } from '@worldcoin/idkit' const { open, setOpen } = useIDKit({ - signal: "my_signal", + signal: 'my_signal', handleVerify: verifyProof, - actionId: "get_this_from_the_dev_portal", -}); + actionId: 'get_this_from_the_dev_portal', +}) ``` ## 🔒 Verifying the IDKit response diff --git a/examples/with-next/README.md b/examples/with-next/README.md index a75ac524..6fa6334f 100644 --- a/examples/with-next/README.md +++ b/examples/with-next/README.md @@ -28,8 +28,8 @@ This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-opti To learn more about Next.js, take a look at the following resources: -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. +- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! diff --git a/packages/react/package.json b/packages/react/package.json index 2ffe27a2..ffd9052c 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -21,6 +21,17 @@ "types": "./build/internal.d.ts" } }, + "typesVersions": { + "*": { + "internal": [ + "./build/internal.d.ts" + ], + "*": [ + "./build/*/index.d.ts", + "./build/index.d.ts" + ] + } + }, "main": "src/index.ts", "types": "src/index.ts", "engines": { diff --git a/release-please-config.json b/release-please-config.json index 96c3778d..d7f36765 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -30,12 +30,7 @@ { "type": "linked-versions", "groupName": "group", - "components": [ - "core", - "react", - "standalone", - "idkit" - ] + "components": ["core", "react", "standalone", "idkit"] } ], "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" From 21d60c913129fa0b07584564b85b2e93edef5f6f Mon Sep 17 00:00:00 2001 From: Paolo <149602456+pdtfh@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:28:41 +0100 Subject: [PATCH 2/2] empty commit