@paypal/checkout-components 5.0.205 → 5.0.208

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/button.js +1 -1
  3. package/globals.js +2 -2
  4. package/package.json +13 -13
  5. package/src/constants/button.js +4 -0
  6. package/src/funding/applepay/template.jsx +1 -1
  7. package/src/funding/card/config.jsx +1 -1
  8. package/src/funding/common.jsx +1 -1
  9. package/src/funding/config.js +1 -1
  10. package/src/funding/content.jsx +1 -1
  11. package/src/funding/credit/config.jsx +1 -1
  12. package/src/funding/ideal/config.jsx +1 -1
  13. package/src/funding/paylater/config.jsx +1 -1
  14. package/src/funding/paypal/template.jsx +1 -1
  15. package/src/funding/venmo/template.jsx +1 -1
  16. package/src/interface/button.js +1 -1
  17. package/src/lib/security.js +2 -2
  18. package/src/lib/session.js +1 -1
  19. package/src/marks/component.jsx +3 -3
  20. package/src/marks/template.jsx +2 -2
  21. package/src/ui/buttons/button.jsx +9 -7
  22. package/src/ui/buttons/buttonDesigns/control.jsx +1 -1
  23. package/src/ui/buttons/buttonDesigns/divideLogoAnimation.jsx +1 -1
  24. package/src/ui/buttons/buttonDesigns/index.js +1 -1
  25. package/src/ui/buttons/buttonDesigns/inlineLogoTextDesign.jsx +1 -1
  26. package/src/ui/buttons/buttonDesigns/script.jsx +1 -1
  27. package/src/ui/buttons/buttonDesigns/types.js +1 -1
  28. package/src/ui/buttons/buttons.jsx +26 -8
  29. package/src/ui/buttons/content.jsx +1 -1
  30. package/src/ui/buttons/menu-button/menu-button.jsx +1 -1
  31. package/src/ui/buttons/poweredBy.jsx +1 -1
  32. package/src/ui/buttons/props.js +17 -9
  33. package/src/ui/buttons/script.jsx +1 -1
  34. package/src/ui/buttons/spinner.jsx +1 -1
  35. package/src/ui/buttons/style.jsx +1 -1
  36. package/src/ui/buttons/styles/custom.js +12 -1
  37. package/src/ui/buttons/styles/responsive.js +1 -1
  38. package/src/ui/buttons/tagline.jsx +1 -1
  39. package/src/ui/chevron.jsx +1 -1
  40. package/src/ui/loading.jsx +1 -1
  41. package/src/ui/text/text.jsx +1 -1
  42. package/src/ui/tracking.jsx +1 -1
  43. package/src/zoid/buttons/component.jsx +15 -7
  44. package/src/zoid/buttons/container.jsx +3 -3
  45. package/src/zoid/buttons/prerender.jsx +4 -4
  46. package/src/zoid/buttons/util.js +1 -1
  47. package/src/zoid/card-fields/component.jsx +17 -5
  48. package/src/zoid/card-fields/prerender.jsx +1 -1
  49. package/src/zoid/card-form/component.js +9 -4
  50. package/src/zoid/checkout/component.jsx +9 -4
  51. package/src/zoid/checkout/hacks.js +1 -1
  52. package/src/zoid/checkout/props.js +7 -1
  53. package/src/zoid/installments/component.jsx +3 -3
  54. package/src/zoid/menu/component.jsx +2 -2
  55. package/src/zoid/modal/component.jsx +3 -3
  56. package/src/zoid/payment-fields/component.jsx +3 -3
  57. package/src/zoid/payment-fields/container.jsx +3 -3
  58. package/src/zoid/payment-fields/prerender.jsx +1 -1
  59. package/src/zoid/qr-code/component.jsx +2 -2
  60. package/src/zoid/qr-code/container.jsx +3 -3
  61. package/src/zoid/qr-code/prerender.jsx +2 -2
  62. package/src/zoid/wallet/component.jsx +4 -4
  63. package/src/zoid/wallet/container.jsx +3 -3
  64. package/src/zoid/wallet/prerender.jsx +1 -1
@@ -1,7 +1,7 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { node, Style, type ChildType, type NullableChildrenType } from 'jsx-pragmatic/src';
4
+ import { node, Style, type ChildType, type NullableChildrenType } from '@krakenjs/jsx-pragmatic/src';
5
5
 
6
6
  import { CLASS, TEXT_COLOR } from '../../constants';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { node, Fragment, type ChildType } from 'jsx-pragmatic/src';
4
+ import { node, Fragment, type ChildType } from '@krakenjs/jsx-pragmatic/src';
5
5
 
6
6
  export function TrackingBeacon({ url, nonce } : {| url : string, nonce : ?string |}) : ChildType {
7
7
  return (
@@ -7,15 +7,16 @@ import { getLogger, getLocale, getClientID, getEnv, getIntent, getCommit, getVau
7
7
  getPartnerAttributionID, getCorrelationID, getEnableThreeDomainSecure, getDebug, getComponents, getStageHost, getAPIStageHost, getPayPalDomain,
8
8
  getUserIDToken, getClientMetadataID, getAmount, getEnableFunding, getStorageID, getUserExperienceFlow, getMerchantRequestedPopupsDisabled } from '@paypal/sdk-client/src';
9
9
  import { rememberFunding, getRememberedFunding, getRefinedFundingEligibility } from '@paypal/funding-components/src';
10
- import { ZalgoPromise } from 'zalgo-promise/src';
11
- import { create, type ZoidComponent } from 'zoid/src';
12
- import { uniqueID, memoize, isApplePaySupported, supportsPopups as userAgentSupportsPopups, noop, isLocalStorageEnabled } from 'belter/src';
10
+ import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
11
+ import { create, type ZoidComponent } from '@krakenjs/zoid/src';
12
+ import { uniqueID, memoize, isApplePaySupported, supportsPopups as userAgentSupportsPopups, noop, isLocalStorageEnabled } from '@krakenjs/belter/src';
13
13
  import { FUNDING, FUNDING_BRAND_LABEL, QUERY_BOOL, ENV, FPTI_KEY } from '@paypal/sdk-constants/src';
14
- import { node, dom } from 'jsx-pragmatic/src';
14
+ import { node, dom } from '@krakenjs/jsx-pragmatic/src';
15
15
 
16
16
  import { getSessionID, storageState, sessionState } from '../../lib';
17
17
  import { normalizeButtonStyle, type ButtonProps } from '../../ui/buttons/props';
18
18
  import { isFundingEligible } from '../../funding';
19
+ import { EXPERIENCE } from '../../constants';
19
20
 
20
21
  import { containerTemplate } from './container';
21
22
  import { PrerenderedButtons } from './prerender';
@@ -202,6 +203,11 @@ export const getButtonsComponent : () => ButtonsComponent = memoize(() => {
202
203
  required: false
203
204
  },
204
205
 
206
+ onComplete: {
207
+ type: 'function',
208
+ required: false
209
+ },
210
+
205
211
  onShippingChange: {
206
212
  type: 'function',
207
213
  required: false,
@@ -597,13 +603,15 @@ export const getButtonsComponent : () => ButtonsComponent = memoize(() => {
597
603
  value: applePaySession
598
604
  },
599
605
 
600
- inline: {
606
+ experience: {
601
607
  queryParam: true,
602
608
  required: false,
603
- type: 'boolean',
609
+ type: 'string',
604
610
  value: ({ props }) => {
605
611
  const { style: { custom }, fundingEligibility } = props;
606
- return custom && fundingEligibility[FUNDING.CARD]?.eligible;
612
+ const isInlineXO = (custom && (custom.label || custom.css)) && fundingEligibility[FUNDING.CARD]?.eligible;
613
+
614
+ return isInlineXO ? EXPERIENCE.INLINE : '';
607
615
  }
608
616
  },
609
617
 
@@ -1,9 +1,9 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { values, destroyElement, toCSS } from 'belter/src';
5
- import { node, dom } from 'jsx-pragmatic/src';
6
- import { EVENT, type RenderOptionsType } from 'zoid/src';
4
+ import { values, destroyElement, toCSS } from '@krakenjs/belter/src';
5
+ import { node, dom } from '@krakenjs/jsx-pragmatic/src';
6
+ import { EVENT, type RenderOptionsType } from '@krakenjs/zoid/src';
7
7
  import { getVersion } from '@paypal/sdk-client/src';
8
8
 
9
9
  import { BUTTON_SIZE, ATTRIBUTE, MENU_PLACEMENT } from '../../constants';
@@ -1,13 +1,13 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { node, dom, type ChildType } from 'jsx-pragmatic/src';
4
+ import { node, dom, type ChildType } from '@krakenjs/jsx-pragmatic/src';
5
5
  import { FUNDING, CARD, FPTI_KEY } from '@paypal/sdk-constants/src';
6
- import { popup, supportsPopups, writeElementToWindow } from 'belter/src';
7
- import { assertSameDomain, type CrossDomainWindowType } from 'cross-domain-utils/src';
6
+ import { popup, supportsPopups, writeElementToWindow } from '@krakenjs/belter/src';
7
+ import { assertSameDomain, type CrossDomainWindowType } from '@krakenjs/cross-domain-utils/src';
8
8
  import { SpinnerPage } from '@paypal/common-components/src';
9
9
  import { getLogger } from '@paypal/sdk-client/src';
10
- import type { ZoidProps } from 'zoid/src';
10
+ import type { ZoidProps } from '@krakenjs/zoid/src';
11
11
 
12
12
  import { DEFAULT_POPUP_SIZE } from '../checkout';
13
13
  import { Buttons } from '../../ui';
@@ -1,5 +1,5 @@
1
1
  /* @flow */
2
- import { supportsPopups as userAgentSupportsPopups, isAndroid, isChrome, isIos, isSafari, isSFVC, type Experiment, isDevice, isTablet, getElement, isLocalStorageEnabled } from 'belter/src';
2
+ import { supportsPopups as userAgentSupportsPopups, isAndroid, isChrome, isIos, isSafari, isSFVC, type Experiment, isDevice, isTablet, getElement, isLocalStorageEnabled } from '@krakenjs/belter/src';
3
3
  import { ENV, FUNDING } from '@paypal/sdk-constants/src';
4
4
  import { getEnableFunding, getDisableFunding, createExperiment, getFundingEligibility, getPlatform, getComponents, getEnv } from '@paypal/sdk-client/src';
5
5
  import { getRefinedFundingEligibility } from '@paypal/funding-components/src';
@@ -2,11 +2,11 @@
2
2
  /** @jsx node */
3
3
  /* eslint max-lines: 0 */
4
4
 
5
- import { node, dom } from 'jsx-pragmatic/src';
6
- import { ZalgoPromise } from 'zalgo-promise/src';
7
- import { create, type ZoidComponent } from 'zoid/src';
8
- import type { CrossDomainWindowType } from 'cross-domain-utils/src';
9
- import { memoize, uniqueID } from 'belter/src';
5
+ import { node, dom } from '@krakenjs/jsx-pragmatic/src';
6
+ import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
7
+ import { create, type ZoidComponent } from '@krakenjs/zoid/src';
8
+ import type { CrossDomainWindowType } from '@krakenjs/cross-domain-utils/src';
9
+ import { memoize, uniqueID } from '@krakenjs/belter/src';
10
10
  import { getLocale, getEnv, getSDKMeta, getDisableCard, getPayPalDomain, getClientID, getDebug, getCurrency, getIntent,
11
11
  getCommit, getVault } from '@paypal/sdk-client/src';
12
12
  import { getRefinedFundingEligibility } from '@paypal/funding-components/src';
@@ -47,6 +47,7 @@ type CardFieldsProps = {|
47
47
 
48
48
  createOrder : () => ZalgoPromise<string> | string,
49
49
  onApprove : ({| returnUrl : string |}, {| redirect : (?CrossDomainWindowType, ?string) => ZalgoPromise<void> |}) => ?ZalgoPromise<void>,
50
+ onComplete : ({| returnUrl : string |}, {| redirect : (?CrossDomainWindowType, ?string) => ZalgoPromise<void> |}) => ?ZalgoPromise<void>,
50
51
  onCancel ? : ({| cancelUrl : string |}, {| redirect : (? CrossDomainWindowType, ? string) => ZalgoPromise<void> |}) => ?ZalgoPromise<void>
51
52
  |};
52
53
 
@@ -165,6 +166,12 @@ export const getCardFieldsComponent : () => CardFieldsComponent = memoize(() : C
165
166
  value: ({ props }) => props.parent.props.onApprove
166
167
  },
167
168
 
169
+ onComplete: {
170
+ type: 'function',
171
+ required: false,
172
+ value: ({ props }) => props.parent.props.onComplete
173
+ },
174
+
168
175
  onCancel: {
169
176
  type: 'function',
170
177
  required: false,
@@ -336,6 +343,11 @@ export const getCardFieldsComponent : () => CardFieldsComponent = memoize(() : C
336
343
  required: false
337
344
  },
338
345
 
346
+ onComplete: {
347
+ type: 'function',
348
+ required: false
349
+ },
350
+
339
351
  onCancel: {
340
352
  type: 'function',
341
353
  required: false
@@ -1,7 +1,7 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { node, type ChildType } from 'jsx-pragmatic/src';
4
+ import { node, type ChildType } from '@krakenjs/jsx-pragmatic/src';
5
5
 
6
6
  type PrerenderedCardProps = {|
7
7
  nonce : ?string,
@@ -3,10 +3,10 @@
3
3
  /* eslint max-lines: 0 */
4
4
 
5
5
  import { LANG } from '@paypal/sdk-constants/src';
6
- import { ZalgoPromise } from 'zalgo-promise/src';
7
- import { create, type ZoidComponent } from 'zoid/src';
8
- import type { CrossDomainWindowType } from 'cross-domain-utils/src';
9
- import { inlineMemoize } from 'belter/src';
6
+ import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
7
+ import { create, type ZoidComponent } from '@krakenjs/zoid/src';
8
+ import type { CrossDomainWindowType } from '@krakenjs/cross-domain-utils/src';
9
+ import { inlineMemoize } from '@krakenjs/belter/src';
10
10
  import { getLocale, getEnv, getCommit, getSDKMeta, getDisableCard, getPayPalDomain } from '@paypal/sdk-client/src';
11
11
 
12
12
  import { getSessionID } from '../../lib';
@@ -103,6 +103,11 @@ export function getCardFormComponent() : CardFormComponent {
103
103
  alias: 'onAuthorize'
104
104
  },
105
105
 
106
+ onComplete: {
107
+ type: 'function',
108
+ required: false
109
+ },
110
+
106
111
  onAuth: {
107
112
  type: 'function',
108
113
  required: false,
@@ -2,14 +2,14 @@
2
2
  /** @jsx node */
3
3
  /* eslint max-lines: 0 */
4
4
 
5
- import { node, dom } from 'jsx-pragmatic/src';
5
+ import { node, dom } from '@krakenjs/jsx-pragmatic/src';
6
6
  import {
7
7
  getPayPalDomainRegex, getLogger, getLocale,
8
8
  getEnv, getClientID, getCommit, getSDKMeta, getCSPNonce, getBuyerCountry, getVersion, getPayPalDomain, getClientMetadataID
9
9
  } from '@paypal/sdk-client/src';
10
- import { ZalgoPromise } from 'zalgo-promise/src';
11
- import { create, CONTEXT, type ZoidComponent, EVENT } from 'zoid/src';
12
- import { isDevice, memoize, noop, supportsPopups, inlineMemoize } from 'belter/src';
10
+ import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
11
+ import { create, CONTEXT, type ZoidComponent, EVENT } from '@krakenjs/zoid/src';
12
+ import { isDevice, memoize, noop, supportsPopups, inlineMemoize } from '@krakenjs/belter/src';
13
13
  import { FUNDING } from '@paypal/sdk-constants/src';
14
14
  import { SpinnerPage, Overlay } from '@paypal/common-components/src';
15
15
 
@@ -191,6 +191,11 @@ export function getCheckoutComponent() : CheckoutComponent {
191
191
  type: 'function',
192
192
  alias: 'onAuthorize'
193
193
  },
194
+
195
+ onComplete: {
196
+ type: 'function',
197
+ required: false
198
+ },
194
199
 
195
200
  onShippingChange: {
196
201
  type: 'function',
@@ -1,7 +1,7 @@
1
1
  /* @flow */
2
2
 
3
3
  import { getSDKMeta } from '@paypal/sdk-client/src';
4
- import { ZalgoPromise } from 'zalgo-promise/src';
4
+ import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
5
5
 
6
6
  export function fixCreditRedirect() {
7
7
 
@@ -1,6 +1,7 @@
1
1
  /* @flow */
2
2
 
3
- import type { ZalgoPromise } from 'zalgo-promise/src';
3
+ import type { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
4
+ import type { CrossDomainWindowType } from '@krakenjs/cross-domain-utils/src';
4
5
  import { FUNDING, ENV, type LocaleType } from '@paypal/sdk-constants/src';
5
6
 
6
7
  export type OnApproveData = {|
@@ -13,6 +14,10 @@ export type OnApproveActions = {|
13
14
 
14
15
  |};
15
16
 
17
+ export type OnCompleteData = {||};
18
+ export type OnCompleteActions = {|
19
+ redirect : (string, CrossDomainWindowType) => ZalgoPromise<void>
20
+ |};
16
21
  export type OnCancelData = {|
17
22
  orderID : string,
18
23
  paymentID? : string
@@ -26,6 +31,7 @@ export type CheckoutPropsType = {|
26
31
  createOrder : () => ZalgoPromise<string>,
27
32
  createAuthCode : () => ZalgoPromise<string>,
28
33
  onApprove : (OnApproveData, OnApproveActions) => ?ZalgoPromise<void>,
34
+ onComplete : (OnCompleteData, OnCompleteActions) => ?ZalgoPromise<void>,
29
35
  onCancel? : (OnCancelData, OnCancelActions) => ?ZalgoPromise<void>,
30
36
  fundingSource : $Values<typeof FUNDING>,
31
37
  env : $Values<typeof ENV>,
@@ -2,10 +2,10 @@
2
2
  /** @jsx node */
3
3
  /* eslint max-lines: 0 */
4
4
 
5
- import { node, dom } from 'jsx-pragmatic/src';
5
+ import { node, dom } from '@krakenjs/jsx-pragmatic/src';
6
6
  import { getLogger, getPayPalDomainRegex, getSDKMeta, getPayPalDomain, getLocale, getCSPNonce } from '@paypal/sdk-client/src';
7
- import { create, type ZoidComponent } from 'zoid/src';
8
- import { inlineMemoize } from 'belter/src';
7
+ import { create, type ZoidComponent } from '@krakenjs/zoid/src';
8
+ import { inlineMemoize } from '@krakenjs/belter/src';
9
9
  import { Overlay, SpinnerPage } from '@paypal/common-components/src';
10
10
 
11
11
  import { type InstallmentsProps } from './props';
@@ -3,8 +3,8 @@
3
3
  /* eslint max-lines: 0 */
4
4
 
5
5
  import { getLogger, getPayPalDomainRegex, getSDKMeta, getPayPalDomain } from '@paypal/sdk-client/src';
6
- import { create, type ZoidComponent } from 'zoid/src';
7
- import { inlineMemoize } from 'belter/src';
6
+ import { create, type ZoidComponent } from '@krakenjs/zoid/src';
7
+ import { inlineMemoize } from '@krakenjs/belter/src';
8
8
 
9
9
  import { type MenuProps } from './props';
10
10
 
@@ -3,9 +3,9 @@
3
3
  /* eslint max-lines: 0 */
4
4
 
5
5
  import { getLogger, getPayPalDomainRegex, getSDKMeta, getPayPalDomain } from '@paypal/sdk-client/src';
6
- import { create, EVENT, type ZoidComponent } from 'zoid/src';
7
- import { inlineMemoize, destroyElement, toCSS } from 'belter/src';
8
- import { node, dom } from 'jsx-pragmatic/src';
6
+ import { create, EVENT, type ZoidComponent } from '@krakenjs/zoid/src';
7
+ import { inlineMemoize, destroyElement, toCSS } from '@krakenjs/belter/src';
8
+ import { node, dom } from '@krakenjs/jsx-pragmatic/src';
9
9
 
10
10
  import { type ModalProps } from './props';
11
11
 
@@ -2,11 +2,11 @@
2
2
  /** @jsx node */
3
3
  /* eslint max-lines: 0 */
4
4
 
5
- import { node, dom } from 'jsx-pragmatic/src';
5
+ import { node, dom } from '@krakenjs/jsx-pragmatic/src';
6
6
  import { getLogger, getPayPalDomainRegex, getSDKMeta, getPayPalDomain, getClientID,
7
7
  getCorrelationID, getSessionID, getEnv, getBuyerCountry, getLocale, getPartnerAttributionID } from '@paypal/sdk-client/src';
8
- import { create, type ZoidComponent } from 'zoid/src';
9
- import { inlineMemoize, uniqueID } from 'belter/src';
8
+ import { create, type ZoidComponent } from '@krakenjs/zoid/src';
9
+ import { inlineMemoize, uniqueID } from '@krakenjs/belter/src';
10
10
 
11
11
  import { storageState, sessionState } from '../../lib';
12
12
 
@@ -1,9 +1,9 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { destroyElement, toCSS, type EventEmitterType } from 'belter/src';
5
- import { node, type ChildType } from 'jsx-pragmatic/src';
6
- import { EVENT } from 'zoid/src';
4
+ import { destroyElement, toCSS, type EventEmitterType } from '@krakenjs/belter/src';
5
+ import { node, type ChildType } from '@krakenjs/jsx-pragmatic/src';
6
+ import { EVENT } from '@krakenjs/zoid/src';
7
7
 
8
8
  const CLASS = {
9
9
  VISIBLE: 'visible',
@@ -1,7 +1,7 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { node, type ChildType } from 'jsx-pragmatic/src';
4
+ import { node, type ChildType } from '@krakenjs/jsx-pragmatic/src';
5
5
 
6
6
  type PrerenderedPaymentFieldsProps = {|
7
7
  nonce : ?string
@@ -1,8 +1,8 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { inlineMemoize, uniqueID } from 'belter/src';
5
- import { create, type ZoidComponent } from 'zoid/src';
4
+ import { inlineMemoize, uniqueID } from '@krakenjs/belter/src';
5
+ import { create, type ZoidComponent } from '@krakenjs/zoid/src';
6
6
  import { getLogger, getPayPalDomainRegex, getPayPalDomain, getCSPNonce, getSDKMeta, getDebug, getEnv, getSessionID, getLocale, getClientID, getCorrelationID, getBuyerCountry } from '@paypal/sdk-client/src';
7
7
 
8
8
  import { containerTemplate } from './container';
@@ -1,9 +1,9 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { destroyElement, type EventEmitterType } from 'belter/src';
5
- import { EVENT, type RenderOptionsType } from 'zoid/src';
6
- import { node, dom, type ChildType } from 'jsx-pragmatic/src';
4
+ import { destroyElement, type EventEmitterType } from '@krakenjs/belter/src';
5
+ import { EVENT, type RenderOptionsType } from '@krakenjs/zoid/src';
6
+ import { node, dom, type ChildType } from '@krakenjs/jsx-pragmatic/src';
7
7
 
8
8
  import { type QRCodeProps } from './types';
9
9
 
@@ -1,8 +1,8 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { type RenderOptionsType } from 'zoid/src';
5
- import { node, dom } from 'jsx-pragmatic/src';
4
+ import { type RenderOptionsType } from '@krakenjs/zoid/src';
5
+ import { node, dom } from '@krakenjs/jsx-pragmatic/src';
6
6
  import { SpinnerPage } from '@paypal/common-components/src';
7
7
 
8
8
  import { type QRCodeProps } from './types';
@@ -2,16 +2,16 @@
2
2
  /** @jsx node */
3
3
  /* eslint max-lines: 0 */
4
4
 
5
- import { node, dom } from 'jsx-pragmatic/src';
5
+ import { node, dom } from '@krakenjs/jsx-pragmatic/src';
6
6
  import {
7
7
  getLogger, getPayPalDomainRegex, getSDKMeta, getPayPalDomain, getClientID, getUserAccessToken,
8
8
  getClientAccessToken, getUserIDToken, getLocale, getPartnerAttributionID, getCorrelationID, getSessionID,
9
9
  getEnv, getStageHost, getAPIStageHost, getPlatform, getCurrency, getIntent, getBuyerCountry, getCommit, getVault,
10
10
  getMerchantID, getCSPNonce, getDebug, getMerchantRequestedPopupsDisabled
11
11
  } from '@paypal/sdk-client/src';
12
- import { create, type ZoidComponent } from 'zoid/src';
13
- import { inlineMemoize, memoize, uniqueID } from 'belter/src';
14
- import { ZalgoPromise } from 'zalgo-promise/src';
12
+ import { create, type ZoidComponent } from '@krakenjs/zoid/src';
13
+ import { inlineMemoize, memoize, uniqueID } from '@krakenjs/belter/src';
14
+ import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
15
15
  import { FUNDING } from '@paypal/sdk-constants/src';
16
16
  import { getRefinedFundingEligibility, rememberFunding } from '@paypal/funding-components/src';
17
17
 
@@ -1,9 +1,9 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { destroyElement, toCSS, type EventEmitterType } from 'belter/src';
5
- import { node, type ChildType } from 'jsx-pragmatic/src';
6
- import { EVENT } from 'zoid/src';
4
+ import { destroyElement, toCSS, type EventEmitterType } from '@krakenjs/belter/src';
5
+ import { node, type ChildType } from '@krakenjs/jsx-pragmatic/src';
6
+ import { EVENT } from '@krakenjs/zoid/src';
7
7
 
8
8
  const CLASS = {
9
9
  VISIBLE: 'visible',
@@ -1,7 +1,7 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { node, type ChildType } from 'jsx-pragmatic/src';
4
+ import { node, type ChildType } from '@krakenjs/jsx-pragmatic/src';
5
5
 
6
6
  type PrerenderedWalletProps = {|
7
7
  nonce : ?string