diff --git a/README.md b/README.md index 8154102e..b003868b 100644 --- a/README.md +++ b/README.md @@ -93,4 +93,4 @@ This is a new SDK, integrating v2 of the World ID protocol. If you want to find -[docs]: https://id.worldcoin.org/docs/js +[docs]: https://docs.worldcoin.org/js diff --git a/idkit/CHANGELOG.md b/idkit/CHANGELOG.md index 81f9bee8..a4274bce 100644 --- a/idkit/CHANGELOG.md +++ b/idkit/CHANGELOG.md @@ -4,18 +4,16 @@ All notable changes to this project will be documented in this file. See [standa ## [0.4.4](https://github.com/worldcoin/idkit-js/compare/idkit-v0.4.0-alpha.2...idkit-v0.4.4) (2023-03-07) - ### Features -* phone credential type ([#87](https://github.com/worldcoin/idkit-js/issues/87)) ([9b42876](https://github.com/worldcoin/idkit-js/commit/9b428764a7873d040f5267ddac22b315a12435f9)) -* remove logo from qr ([#82](https://github.com/worldcoin/idkit-js/issues/82)) ([070b88e](https://github.com/worldcoin/idkit-js/commit/070b88e1702bc38329d6c408d9ac60ccbfb4357a)) - +- phone credential type ([#87](https://github.com/worldcoin/idkit-js/issues/87)) ([9b42876](https://github.com/worldcoin/idkit-js/commit/9b428764a7873d040f5267ddac22b315a12435f9)) +- remove logo from qr ([#82](https://github.com/worldcoin/idkit-js/issues/82)) ([070b88e](https://github.com/worldcoin/idkit-js/commit/070b88e1702bc38329d6c408d9ac60ccbfb4357a)) ### Bug Fixes -* qr logo positioning ([#79](https://github.com/worldcoin/idkit-js/issues/79)) ([45db408](https://github.com/worldcoin/idkit-js/commit/45db4087df0b630b9285ba9a4140d0e4662f1633)) -* remove a bunch of unused phone code ([#83](https://github.com/worldcoin/idkit-js/issues/83)) ([59f3ac0](https://github.com/worldcoin/idkit-js/commit/59f3ac053a86f02db0571c117c237910939fc1e2)) -* remove unused error codes ([#81](https://github.com/worldcoin/idkit-js/issues/81)) ([9a2b967](https://github.com/worldcoin/idkit-js/commit/9a2b967514d375dc80f51805ccfe6755314933cc)) +- qr logo positioning ([#79](https://github.com/worldcoin/idkit-js/issues/79)) ([45db408](https://github.com/worldcoin/idkit-js/commit/45db4087df0b630b9285ba9a4140d0e4662f1633)) +- remove a bunch of unused phone code ([#83](https://github.com/worldcoin/idkit-js/issues/83)) ([59f3ac0](https://github.com/worldcoin/idkit-js/commit/59f3ac053a86f02db0571c117c237910939fc1e2)) +- remove unused error codes ([#81](https://github.com/worldcoin/idkit-js/issues/81)) ([9a2b967](https://github.com/worldcoin/idkit-js/commit/9a2b967514d375dc80f51805ccfe6755314933cc)) ### [0.4.3](https://github.com/worldcoin/idkit-js/compare/v0.4.2...v0.4.3) (2023-02-27) diff --git a/idkit/src/components/AboutWorldID.tsx b/idkit/src/components/AboutWorldID.tsx index c8237de1..0cb7bb09 100644 --- a/idkit/src/components/AboutWorldID.tsx +++ b/idkit/src/components/AboutWorldID.tsx @@ -12,12 +12,11 @@ const AboutWorldID: FC = ({ className }) => {

What is World ID?

- -

Human is doing an action only once.

-

Stop bots, stop abouse.

+ +

With Worldcoin and World ID sign in seamlessly and prove you are a unique human.

- -

Using Zero-knowledge proofs so no traceable information is ever public.

+ +

Maximum privacy. Prevents cross-tracking and can be used fully anonymously.

diff --git a/idkit/src/components/IDKitWidget/BaseWidget.tsx b/idkit/src/components/IDKitWidget/BaseWidget.tsx index 55508f61..aee4d22b 100644 --- a/idkit/src/components/IDKitWidget/BaseWidget.tsx +++ b/idkit/src/components/IDKitWidget/BaseWidget.tsx @@ -3,10 +3,10 @@ import root from 'react-shadow' import { IDKITStage } from '@/types' import Styles from '@build/index.css' import useMedia from '@/hooks/useMedia' +import { classNames } from '@/lib/utils' import useIDKitStore from '@/store/idkit' import { shallow } from 'zustand/shallow' import XMarkIcon from '../Icons/XMarkIcon' -import AboutState from './States/AboutState' import ErrorState from './States/ErrorState' import { ConfigSource } from '@/types/config' import LoadingIcon from '../Icons/LoadingIcon' @@ -16,7 +16,6 @@ import PrivacyState from './States/PrivacyState' import SuccessState from './States/SuccessState' import WorldIDState from './States/WorldIDState' import * as Dialog from '@radix-ui/react-dialog' -import { classNames, getCopy } from '@/lib/utils' import type { WidgetProps } from '@/types/config' import { Fragment, useEffect, useMemo } from 'react' import WorldIDWordmark from '../Icons/WorldIDWordmark' @@ -68,7 +67,6 @@ const IDKitWidget: FC = ({ setStage, canGoBack, setOptions, - copy: _copy, theme: _theme, } = useIDKitStore(getParams, shallow) const media = useMedia() @@ -113,8 +111,6 @@ const IDKitWidget: FC = ({ return SuccessState case IDKITStage.ERROR: return ErrorState - case IDKITStage.ABOUT: - return AboutState case IDKITStage.PRIVACY: return PrivacyState case IDKITStage.HOST_APP_VERIFICATION: @@ -161,7 +157,7 @@ const IDKitWidget: FC = ({ }} transition={{ layout: { duration: 0.15 } }} className={ - 'dark:bg-0d151d relative z-50 w-full rounded-t-3xl bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 md:max-w-md md:rounded-b-3xl' + 'dark:bg-0d151d relative z-50 w-full rounded-t-2xl bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 md:max-w-md md:rounded-b-2xl' } > @@ -177,9 +173,7 @@ const IDKitWidget: FC = ({ > - - {stage != IDKITStage.ABOUT && getCopy(_copy, 'title')} - + @@ -208,11 +202,11 @@ const IDKitWidget: FC = ({ )} -
+

Verified with @@ -229,8 +223,8 @@ const IDKitWidget: FC = ({ ) : ( Learn More → diff --git a/idkit/src/components/IDKitWidget/States/AboutState.tsx b/idkit/src/components/IDKitWidget/States/AboutState.tsx deleted file mode 100644 index 2901e47e..00000000 --- a/idkit/src/components/IDKitWidget/States/AboutState.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { motion } from 'framer-motion' -import { classNames } from '@/lib/utils' - -const AboutState = () => { - return ( -

- ) -} - -export default AboutState diff --git a/idkit/src/components/IDKitWidget/States/PrivacyState.tsx b/idkit/src/components/IDKitWidget/States/PrivacyState.tsx index 58513995..1b1e9821 100644 --- a/idkit/src/components/IDKitWidget/States/PrivacyState.tsx +++ b/idkit/src/components/IDKitWidget/States/PrivacyState.tsx @@ -3,22 +3,21 @@ import InfoIcon from '@/components/Icons/InfoIcon' const PrivacyState = () => { return ( -
+
-

- IDKit and World ID are fully privacy preserving. -

-