Commit Graph

125 Commits

Author SHA1 Message Date
Samuel Andert
920e7b7ca1 added dynamic data loading and mapping towards components. 2023-07-26 15:16:41 +02:00
Samuel Andert
14aad071f4 minor fix 2023-07-26 11:30:05 +02:00
Samuel Andert
5c2f7afa5f abstracted subscribe to state in composite 2023-07-26 11:11:12 +02:00
Samuel Andert
e3f2dbacc8 feat(Composite): Enhance root and child rendering with error differentiation
- Adjusted Composite to conditionally check for both direct root and child rendering.
- Differentiated error states: omitting an error when `component` prop is absent but showing an error when it's undefined.
- Fixed rendering of @app in the messages stream.
2023-07-26 09:40:28 +02:00
Samuel Andert
0161f4ba4f breaking changes, major refactoring of Composite 2023-07-26 09:23:15 +02:00
Samuel Andert
858d21e7db feat(wallet.svelte): integrate pkpWallet into state store
- Initialize pkpWallet with null value inside the component store.
- Update store's pkpWallet upon successful wallet connection.
- Reflect pkpWallet value reactively in the UI.

BREAKING CHANGE: The pkpWallet now resides in the component's store and should be accessed as $store.pkpWallet.
2023-07-26 06:14:33 +02:00
Samuel Andert
a2fe8b136b refactor(Composite): add ICompositeLayout interface & enhance children area assignment 2023-07-25 20:33:57 +02:00
Samuel Andert
75d58eafea feat(Composite.svelte): update layout interface
Refactor the Composite component to support a new layout format with additional customization through the customTailwind property. This change simplifies the way layouts are defined and provides greater flexibility for design customizations.

BREAKING CHANGE: The layout interface in Composite.svelte has been modified. Components that depend on the old layout structure may need to be updated.
2023-07-25 16:10:15 +02:00
Samuel Andert
b560897e17 minors 2023-07-25 15:54:36 +02:00
Samuel Andert
38ec75d19b feat(composite): enhance service loading for multiple exports 2023-07-25 15:31:35 +02:00
Samuel Andert
c47cf1e338 tiding up GoogleAuth 2023-07-25 12:16:44 +02:00
Samuel Andert
f2e9100766 refactoed mint and create session 2023-07-25 11:49:17 +02:00
Samuel Andert
ab92110970 Added auto import of services to the composite 2023-07-25 11:20:51 +02:00
Samuel Andert
70fe76279e tiny tidying up 2023-07-25 09:45:07 +02:00
Samuel Andert
44d668d7af Refactoring Provider setup of Google Auth 2023-07-25 09:34:31 +02:00
Samuel Andert
50b0fca034 refactoring step1 GoogleAuth 2023-07-24 17:41:44 +02:00
Samuel Andert
0e6a956511 Optimize component state mapping and reduce unnecessary updates 2023-07-24 16:41:00 +02:00
Samuel Andert
e12f6bcf05 feat(components): Initialize component state and enable property mapping
- Ensure every component has an initialized state, defaulting to empty.
- Implement property mapping to synchronize states between parent and child components.
2023-07-24 15:00:05 +02:00
Samuel Andert
5b7c49fd58 feat(wallet): Refactor wallet service for enhanced modularity and clarity
- Abstracted RPC interface to allow dynamic input for connection flexibility.
- Added `signSession` function to retrieve `authSig` efficiently.
- Improved logging and error handling to provide clearer feedback.
- Centralized `authSig` retrieval for better code maintainability.

This refactor ensures the wallet service is more adaptable to varying use cases and improves overall code readability.
2023-07-24 12:54:59 +02:00
Samuel Andert
cf1a83006e Refactor authWithMetamask to enhance modularity and introduce logout functionality 2023-07-24 11:51:39 +02:00
Samuel Andert
8aff269743 fix(docs): Correct documentation format layout 2023-07-24 11:13:52 +02:00
Samuel Andert
5ee59cb820 docs(provider.ts): Add README documentation, +cleanup 2023-07-24 11:11:51 +02:00
Samuel Andert
3f024283ef feat(provider): Enhance provider setup with meaningful logging
- Introduced detailed system-level logging for provider initialization and configuration stages.
- Adjusted path references for accurate message sourcing.
- Abstracted walletConnectId for improved modularity.
2023-07-24 10:36:55 +02:00
Samuel Andert
a572099312 Updated componentLoader and vite to load any folder depth 2023-07-24 09:39:33 +02:00
Samuel Andert
f75268a1d1 minor cleanup 2023-07-24 08:51:10 +02:00
Samuel Andert
0200c31ded tiding up a bit 2023-07-23 18:52:42 +02:00
Samuel Andert
613053c062 added WIP, recursive children in children render 2023-07-22 21:37:07 +02:00
Samuel Andert
f060090b0c testing actions on dynamic components load 2023-07-22 21:04:12 +02:00
Samuel Andert
4d5b634e55 simplified the actions again to fix some bugs 2023-07-22 19:05:44 +02:00
Samuel Andert
68708b65d8 finished correct decoupling of action with svelte stores 2023-07-22 18:11:20 +02:00
Samuel Andert
dc3995e327 decoupled actions from the components loading dynamically 2023-07-22 17:35:14 +02:00
Samuel Andert
90e4718df3 refactored the sned and clear messages button 2023-07-22 17:16:05 +02:00
Samuel Andert
5b7f46a414 some basic cleanup 2023-07-22 16:34:57 +02:00
Samuel Andert
5ddfc36acb minor fixes 2023-07-22 16:22:46 +02:00
Samuel Andert
0053515286 Added dynamic component rendering attached to message with the
@app: command
2023-07-22 16:08:00 +02:00
Samuel Andert
379a163fce minor cleanup and added dummy HelloEarth test comp 2023-07-22 15:41:27 +02:00
Samuel Andert
c84615d6bf added enter send key to messages input 2023-07-22 11:21:02 +02:00
Samuel Andert
77a183a7c2 fixed messages to auto scroll to bottom 2023-07-22 11:15:26 +02:00
Samuel Andert
97fb57c659 fixed overflow and hidden bugs 2023-07-22 10:28:04 +02:00
Samuel Andert
d021281df3 Added dynamic layouts to the composite loader 2023-07-22 09:58:26 +02:00
Samuel Andert
1ba7a9a28b added dynamical import of components via vite 2023-07-22 09:29:40 +02:00
Samuel Andert
01c742e6ce added basic composite pattern to load the ui dynamically via json 2023-07-22 09:12:03 +02:00
Samuel Andert
081d052443 added Basic Status Messages to GoogleAuth 2023-07-21 15:16:07 +02:00
Samuel Andert
207b154035 some ui updates 2023-07-21 14:48:44 +02:00
Samuel Andert
5be272d1f2 more wiring up of messages 2023-07-21 14:16:42 +02:00
Samuel Andert
6c691c7be3 pulling out the basic messaging service. 2023-07-21 13:47:09 +02:00
Samuel Andert
5e827cd939 wired dummy messaging to use svelte stores. 2023-07-21 13:13:45 +02:00
Samuel Andert
4056f3ef8d added basic messaging mockup 2023-07-21 12:24:08 +02:00
Samuel Andert
f11a208f56 ported google PKP signup to sveltekit 2023-07-21 11:20:11 +02:00
Samuel Andert
c71f37d221 reducing the google example to google only 2023-07-21 09:55:48 +02:00
Samuel Andert
4b419a5ade Updated main provider to include Chronicle 2023-07-21 09:24:32 +02:00
Samuel Andert
68f85d9f29 added user prompt to sign in session request of wallet connect 2023-07-20 19:54:19 +02:00
Samuel Andert
940b4c3c45 fixed dynamic authSig bug 2023-07-20 19:14:57 +02:00
Samuel Andert
141834dac8 removed hardcoded authsig 2023-07-20 19:05:54 +02:00
Samuel Andert
eb647b7aad Added basic PKP wallet connect sign in POC 2023-07-20 18:43:41 +02:00
Samuel Andert
07a61a4d3a refactoring and cleanup of Send.Svelte 2023-07-20 17:07:03 +02:00
Samuel Andert
db5ae4f998 try fix for small authsig bug 2023-07-20 13:12:04 +02:00
Samuel Andert
d79342a5f0 removed nextjs example implementation 2023-07-20 12:53:07 +02:00
Samuel Andert
702c33a373 Added Send 0.01xdai with PKP 2023-07-20 12:50:54 +02:00
Samuel Andert
7200050301 added 0.001 et txh 2023-07-18 16:39:11 +02:00
Samuel Andert
5fdaefac93 first commit 2023-07-18 15:36:33 +02:00
Josh Long
162494dfd8 add pkp public key to session sig requests 2023-06-15 15:03:42 -04:00
Howard
81a70959af
Fix session sigs (#7)
* Decouple Google OAuth sign in with Mint PKP step

* Use new signSessionKey SDK method

* Handle authentication separately from storing conditions

* Use auth-helpers package to generate session sigs correctly

* Use react-app-rewired to use config override for fixing webpack bundle

create-react-app default webpack config does not match against .cjs files, so we need to override the default config to bundle .cjs files from auth-helpers using CJS to import the .cjs file
from recap-ts.

* Implement encrypt / decrypt using session sigs

* Use latest js-sdk, use npm instead of yarn

yarn still installs tslib at 1.14.1, which breaks, whereas npm installs at 2.5.0
2023-05-17 17:14:36 -07:00
Howard
2e19c39625
Update WebAuthn registration and authentication to use new and safer impl (#5)
* Update WebAuthn registration and authentication to use new and safer flow

* Implement usernameless WebAuthn registration + Authentication

The username is solely stored in the client side for the end-user to conveniently refer to.

* Use updated SDK interface

* Implement executeJs in webauthn demo

* Show executeJs sig

* Fix username bug

* encodeURIComponent for username

* Use latest working SDK version

* Use serrano
2023-04-06 18:10:26 -07:00
Howard
efb3eab092
Transform more files to TS, replace lit-js-sdk with js-sdk (#4) 2023-02-23 16:39:50 -08:00
Howard
339986b666
Implement WebAuthn auth for minting PKP and storing encryption condition (#2)
* Implement WebAuthn auth for minting PKP and storing encryption condition

* Update copy

* Update copy
2023-02-23 14:37:39 -08:00
Howard Tam
7843588411 Update env name 2022-12-10 10:01:14 -08:00
Howard
c5dfc1e9af
Use centralized relay for minting PKP and storing encryption condition (#1)
* implement encryption with relay server

* implement minting pkp with relay server

* revert yarn.lock changes
2022-11-28 14:40:57 -08:00
Chris Cassano
02a5ff37b7 hash user id and app id 2022-11-14 14:07:25 -08:00
Chris Cassano
010b2fce10 better condition, docs 2022-11-10 21:29:56 -08:00
Chris Cassano
f3bd10bdbf works on serrano, yay 2022-11-10 21:05:26 -08:00
Chris Cassano
56a1b69243 cool, it works 2022-11-10 20:45:46 -08:00
Chris Cassano
cdfb5c2be6 talking to the nodes now... 2022-11-08 16:32:07 -08:00
Chris Cassano
515ff13d45 minting and getting eth address works 2022-11-08 15:48:04 -08:00
Chris Cassano
c8f74eb708 Initialize project using Create React App 2022-11-08 14:46:40 -08:00