-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
POC: Tree shaking with new operator (#2323)
* feat: passing component as prop * fix: fixed build * feat: attempt with different rollup * fix: reverting rollup * feat: tree shaking kinda working with preserveModules * fix: rendering proper components * feat: using registry. auto option * fix: mapping components * feat: working with typescript * feat: deleted unused files * feat: clean up * feat: more clean up * fix: dev env. bcmc txVariants * feat: adjusting Components * fix: fixed createfromaction * feat: fixed playground * fix: circular dependency * fix: improved registry. cleanup paypal * feat: added browserlist * feat: fixed type * First PoC - Dropin & Card components are initialised directly with the new keyword. No checkout.create fn called * Adding warnings if component initialised without ref to checkout * Adding Redirect to Card.dependencies * Bancontact card working * StoredCards working in Dropin * Bancontact card working in Dropin * InstantPaymentMethods (googlePay) working in Dropin * Starting to handle Redirect PMs * UIElement retrieves calculatedProps * Dropin renders fully for NL & BE * Dropin sessions working * All PMs now work (constructors altered to work against new UIElement) * Adding missing types for props param * props param not obligatory in Bancontact. Removed superfluous setting of type on props, in UIElement * Removing unnecessary txVariants from static prop in Card * All PMs now work (constructors altered to work against new UIElement) * Testing whether all subclasses of UIElement need their own constructor * Adding a warning for if props.type missing in UIElement * Remove circular dependencies caused by using instanceof Core in UIElement * Removing old constructors and other commented out code * Clearing calls to checkout.create from playground files * Testing Klarna * Klarna works as redirect or widget * Adding comment about everything that extends UIElement "needing" a constructor * updated comment * Used init function to solve problem of accessing this.constructor.type * Not necessary to pass checkoutRef to init function * Don't pass type in Bancontact constructor * props conditional for IssuerListContainer * Initialise all playground issuer list comps with the new opeerator * No need to generate props._parentInstance in core.ts now that BaseElement does it * Fixed typing for new component constructor * Created NewableComponent type * Removed the create & handleCreate functions from core.ts * Reinstated a simplified create function (for use by UMD merchants). TBD, if we can remove this? * Renaming generateUIElementProps & generateUIElementForDropin functions * Distinguish UMD users and throw error if npm users use checkout.create * Comment out logs * feat: draft * feat: draft pt2 * feat draft pt3 * feat: draft pt5 * feat: draft again * feat: draft again * feat: more changes * feat: fixed storing component ref on core * feat: added testing UMD page and fixes * feat: minor changes * fix: amount * fix: umd name * feat: attempt to improve drop-in rendering redirects * feat: using txvariants from file * feat: adjusted paymentmethodsconfiguration * fix: issuerlist types * fix: removed paymentmethodsconfiguration from core * fix: redirect * feat: minor changes * tree shaking translations. fixed secured fields. commented out some tests * fix: createFromAction. not fetching config from api for stored payments * feat: autoregistering components. threeds added to registry by default. threeds playground page * feat: locale as string, and added translationFile prop * feat: moved icore to types file. cleaned up some code * feat: typescript bump * feat: default export added. fixed typescript on auto * Fixing types * Make sure this.props.Dropin is available * Fixing type for SRPanel config * SecuredFields component and related files renamed to CustomCard * Fixing CustomCard types * feat: removed babel, polyfils. adjusted rollup * feat: populatting bundle type into core * Make name optional in BrandsConfiguration type * fixed package json exports * Removing AdyenWeb imports * Adding NODE_ENV back to package.json * feat: removed default export from playground. fixed umd naming and package json * Correctly declare props that can be set on the Card component * Added data-uid attrs to the custom card fields (will allow prefilling to work in the future) * Keep paymentsConfig v69+ compatible * Allow maskSecurityCode config prop for CustomCard * fix: direct imports. error when not registering class * Create CustomCardProps type * fix: changed uielement validation on registry * Made some RiskModule config props optional * Tidying up Card playground file * Stopping names on window object from clashing * feat: tests running * feat: fixed tests of core folder * test: uielement fix * test: fix baseelement * CustomCardProps don't inherit the 'configuration' prop * remove brands array from card config in playground * test: fixed click to pay tests * test: fixed payment method list. afterpay * moved comment * Removing old (API v66) 3DS2 e2e tests * tests: fixed many tests * tests: more tests * tests: more fixes * tests: fixed all * fix: interfaces of components * Removing legacy action types relating to 3DS2. Preparing for MDFlow using createFromAction * cleanup: tx variants boleto, onlinebanking, entercash, visa * feat: umd source maps * disableIOSArrowKeys config prop is false by default * feat: sourcemaps for es modules too * tests: partially fixed e2e playwright * tests: checking report on ci with list reporter * fix: storybook * feat: type loosing for ctp * fix: storybook phone input * feat: disable lint when parsing js. testing typescript generation. aligned isAvailable * fix: adding card missing types. type-checking before building --------- Co-authored-by: nicholas <[email protected]>
- Loading branch information
1 parent
1cb36f4
commit 2fb4dec
Showing
373 changed files
with
61,681 additions
and
7,289 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.