-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implementation of generic custom data * builder test * change wd for gha * on pull-request test * github action update * no git checks with pnpm publisj * npm auth token * fix npm token * login to npm * pnpm login command * branch release * add tag to distinguish from latest * renamed customData -> personalData, returning it in onRouteChange cbs * tag with "dev" * test changeset release * release -> publish * version first * add changeset * manual changeset * rename snapshot release file * regex serialization * rename step Custom -> Personal Data * snapshot release build widget * add premade personalData fields into widget * validate every field realtime after error * eliminate circular import * move personalData things to utils * fix imports * moved personalData code to utils * disabled setting * fix visual active step hard-coding * enable specifying wallet connect step index * small renaming * fix issues stemming from WidgetCore * added external validation * revert/rename a bunch of things * email field with alias * removed logs * move personal data step as first if there's required fields * expose createWidgetTheme from widget * fix theme export * fix import * fix error display * remove console.logs * use field.name instead of label * allow longer domain extensions * internal then external validation, external not running if internal fails * remove validatePersonalData in builder * unify event listeners and event callbacks as event handlers * make callback non-required * export alias field * Fix up tests * dist folder * remve docs from monorepo --------- Co-authored-by: Kaspar Kallas <[email protected]> Co-authored-by: elvijsTDL <[email protected]>
- Loading branch information
1 parent
f2f3e85
commit 0565290
Showing
42 changed files
with
818 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@superfluid-finance/widget": patch | ||
--- | ||
|
||
Add personal data handling to widget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@superfluid-finance/widget": patch | ||
--- | ||
|
||
Expose createWidgetTheme & WidgetThemeOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import { ThemeOptions } from "@mui/material"; | ||
import { ProductDetails, WidgetProps } from "@superfluid-finance/widget"; | ||
import { | ||
ProductDetails, | ||
WidgetProps, | ||
WidgetThemeOptions, | ||
} from "@superfluid-finance/widget"; | ||
|
||
import { Layout } from "../components/widget-preview/WidgetPreview"; | ||
|
||
export type ExportJSON = { | ||
productDetails: ProductDetails; | ||
paymentDetails: WidgetProps["paymentDetails"]; | ||
type: Layout; | ||
theme: Omit<ThemeOptions, "unstable_strictMode" | "unstable_sxConfig">; | ||
theme: WidgetThemeOptions; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { EventListeners, PersonalData } from "./index.js"; | ||
import { Errors } from "./utils.js"; | ||
|
||
/** | ||
* A set of blocking callback functions that are called at the appropriate time. | ||
* @example | ||
* <SuperfluidWidget callbacks={{ | ||
* validatePersonalData: async (props) => { fetch('https://example.com', { method: 'POST', body: props?.data }) }}, | ||
* }} /> | ||
*/ | ||
|
||
export interface Callbacks extends EventListeners { | ||
/** Called when the user clicks the "Continue" button in the personal data step. */ | ||
validatePersonalData?: ( | ||
data: PersonalData, | ||
) => Errors | void | Promise<Errors | void>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
0565290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
widget-builder – ./apps/widget-builder
superfluid-widget-builder.vercel.app
checkout-builder.superfluid.finance
widget-builder-git-master-superfluid-finance.vercel.app
widget-builder-superfluid-finance.vercel.app
0565290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
widget-reference-docs – ./packages/widget
widget-reference-docs-superfluid-finance.vercel.app
widget-reference-docs-git-master-superfluid-finance.vercel.app
superfluid-widget-reference-docs.vercel.app
0565290
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
widget-hosted – ./apps/hosted-widget
widget-hosted-superfluid-finance.vercel.app
widget-hosted-git-master-superfluid-finance.vercel.app
superfluid-hosted-widget.vercel.app
checkout.superfluid.finance