@paypal/checkout-components 5.0.206 → 5.0.207
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.
- package/CHANGELOG.md +6 -0
- package/dist/button.js +1 -1
- package/globals.js +2 -2
- package/package.json +13 -13
- package/src/funding/applepay/template.jsx +1 -1
- package/src/funding/card/config.jsx +1 -1
- package/src/funding/common.jsx +1 -1
- package/src/funding/config.js +1 -1
- package/src/funding/content.jsx +1 -1
- package/src/funding/credit/config.jsx +1 -1
- package/src/funding/ideal/config.jsx +1 -1
- package/src/funding/paylater/config.jsx +1 -1
- package/src/funding/paypal/template.jsx +1 -1
- package/src/funding/venmo/template.jsx +1 -1
- package/src/interface/button.js +1 -1
- package/src/lib/security.js +2 -2
- package/src/lib/session.js +1 -1
- package/src/marks/component.jsx +3 -3
- package/src/marks/template.jsx +2 -2
- package/src/ui/buttons/button.jsx +2 -2
- package/src/ui/buttons/buttonDesigns/control.jsx +1 -1
- package/src/ui/buttons/buttonDesigns/divideLogoAnimation.jsx +1 -1
- package/src/ui/buttons/buttonDesigns/index.js +1 -1
- package/src/ui/buttons/buttonDesigns/inlineLogoTextDesign.jsx +1 -1
- package/src/ui/buttons/buttonDesigns/script.jsx +1 -1
- package/src/ui/buttons/buttonDesigns/types.js +1 -1
- package/src/ui/buttons/buttons.jsx +2 -2
- package/src/ui/buttons/content.jsx +1 -1
- package/src/ui/buttons/menu-button/menu-button.jsx +1 -1
- package/src/ui/buttons/poweredBy.jsx +1 -1
- package/src/ui/buttons/props.js +4 -4
- package/src/ui/buttons/script.jsx +1 -1
- package/src/ui/buttons/spinner.jsx +1 -1
- package/src/ui/buttons/style.jsx +1 -1
- package/src/ui/buttons/styles/responsive.js +1 -1
- package/src/ui/buttons/tagline.jsx +1 -1
- package/src/ui/chevron.jsx +1 -1
- package/src/ui/loading.jsx +1 -1
- package/src/ui/text/text.jsx +1 -1
- package/src/ui/tracking.jsx +1 -1
- package/src/zoid/buttons/component.jsx +4 -4
- package/src/zoid/buttons/container.jsx +3 -3
- package/src/zoid/buttons/prerender.jsx +4 -4
- package/src/zoid/buttons/util.js +1 -1
- package/src/zoid/card-fields/component.jsx +5 -5
- package/src/zoid/card-fields/prerender.jsx +1 -1
- package/src/zoid/card-form/component.js +4 -4
- package/src/zoid/checkout/component.jsx +4 -4
- package/src/zoid/checkout/hacks.js +1 -1
- package/src/zoid/checkout/props.js +1 -1
- package/src/zoid/installments/component.jsx +3 -3
- package/src/zoid/menu/component.jsx +2 -2
- package/src/zoid/modal/component.jsx +3 -3
- package/src/zoid/payment-fields/component.jsx +3 -3
- package/src/zoid/payment-fields/container.jsx +3 -3
- package/src/zoid/payment-fields/prerender.jsx +1 -1
- package/src/zoid/qr-code/component.jsx +2 -2
- package/src/zoid/qr-code/container.jsx +3 -3
- package/src/zoid/qr-code/prerender.jsx +2 -2
- package/src/zoid/wallet/component.jsx +4 -4
- package/src/zoid/wallet/container.jsx +3 -3
- package/src/zoid/wallet/prerender.jsx +1 -1
package/globals.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint import/no-commonjs: off, flowtype/require-valid-file-annotation: off, flowtype/require-return-type: off */
|
|
2
2
|
|
|
3
|
-
const postRobotGlobals = require('post-robot/globals');
|
|
4
|
-
const zoidGlobals = require('zoid/globals');
|
|
3
|
+
const postRobotGlobals = require('@krakenjs/post-robot/globals');
|
|
4
|
+
const zoidGlobals = require('@krakenjs/zoid/globals');
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypal/checkout-components",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.207",
|
|
4
4
|
"description": "PayPal Checkout components, for integrating checkout products.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"license": "Apache-2.0",
|
|
63
63
|
"readmeFilename": "README.md",
|
|
64
64
|
"devDependencies": {
|
|
65
|
+
"@krakenjs/sync-browser-mocks": "^3.0.0",
|
|
65
66
|
"babel-core": "^7.0.0-bridge.0",
|
|
66
67
|
"bundlemon": "^1.1.0",
|
|
67
68
|
"conventional-changelog-cli": "^2.0.34",
|
|
@@ -82,21 +83,20 @@
|
|
|
82
83
|
"prettier": "^2.5.1",
|
|
83
84
|
"prettier-plugin-sh": "^0.8.1",
|
|
84
85
|
"puppeteer": "^1.20.0",
|
|
85
|
-
"serve": "^13.0.0"
|
|
86
|
-
"sync-browser-mocks": "^2.0.8"
|
|
86
|
+
"serve": "^13.0.0"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@paypal/common-components": "^1.0.
|
|
90
|
-
"@paypal/funding-components": "^1.0.
|
|
91
|
-
"@paypal/sdk-client": "^4.0.
|
|
89
|
+
"@paypal/common-components": "^1.0.27",
|
|
90
|
+
"@paypal/funding-components": "^1.0.27",
|
|
91
|
+
"@paypal/sdk-client": "^4.0.166",
|
|
92
92
|
"@paypal/sdk-constants": "^1.0.107",
|
|
93
|
-
"@paypal/sdk-logos": "^1.0.
|
|
94
|
-
"belter": "^
|
|
95
|
-
"cross-domain-utils": "^
|
|
96
|
-
"jsx-pragmatic": "^
|
|
97
|
-
"post-robot": "^
|
|
98
|
-
"zalgo-promise": "^
|
|
99
|
-
"zoid": "^
|
|
93
|
+
"@paypal/sdk-logos": "^1.0.45",
|
|
94
|
+
"@krakenjs/belter": "^2.0.0",
|
|
95
|
+
"@krakenjs/cross-domain-utils": "^3.0.0",
|
|
96
|
+
"@krakenjs/jsx-pragmatic": "^3",
|
|
97
|
+
"@krakenjs/post-robot": "^11.0.0",
|
|
98
|
+
"@krakenjs/zalgo-promise": "^2.0.0",
|
|
99
|
+
"@krakenjs/zoid": "^10.0.0"
|
|
100
100
|
},
|
|
101
101
|
"lint-staged": {
|
|
102
102
|
"*.sh": "prettier --write"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
|
-
import { node, Style, type ChildType } from 'jsx-pragmatic/src';
|
|
4
|
+
import { node, Style, type ChildType } from '@krakenjs/jsx-pragmatic/src';
|
|
5
5
|
import { ApplePayMark } from '@paypal/sdk-logos/src';
|
|
6
6
|
|
|
7
7
|
import css from './style.scoped.scss';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
|
-
import { node, Fragment } from 'jsx-pragmatic/src';
|
|
4
|
+
import { node, Fragment } from '@krakenjs/jsx-pragmatic/src';
|
|
5
5
|
import { CARD, COUNTRY, COMPONENTS, FUNDING } from '@paypal/sdk-constants/src';
|
|
6
6
|
import { GlyphCard } from '@paypal/sdk-logos/src';
|
|
7
7
|
|
package/src/funding/common.jsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint no-template-curly-in-string: off, max-lines: off */
|
|
3
3
|
/** @jsx node */
|
|
4
4
|
|
|
5
|
-
import { node, type ChildType } from 'jsx-pragmatic/src';
|
|
5
|
+
import { node, type ChildType } from '@krakenjs/jsx-pragmatic/src';
|
|
6
6
|
import type { FundingEligibilityType } from '@paypal/sdk-client/src';
|
|
7
7
|
import { PLATFORM, type LocaleType, COUNTRY, CARD, COMPONENTS, FUNDING, ENV } from '@paypal/sdk-constants/src';
|
|
8
8
|
import { LOGO_COLOR } from '@paypal/sdk-logos/src';
|
package/src/funding/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
|
|
3
3
|
import { FUNDING } from '@paypal/sdk-constants/src';
|
|
4
|
-
import { inlineMemoize } from 'belter/src';
|
|
4
|
+
import { inlineMemoize } from '@krakenjs/belter/src';
|
|
5
5
|
|
|
6
6
|
import { type FundingSourceConfig } from './common';
|
|
7
7
|
import { getPayPalConfig } from './paypal';
|
package/src/funding/content.jsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/** @jsx node */
|
|
4
4
|
/** @jsxFrag Fragment */
|
|
5
5
|
|
|
6
|
-
import { node, Fragment, type ChildType } from 'jsx-pragmatic/src';
|
|
6
|
+
import { node, Fragment, type ChildType } from '@krakenjs/jsx-pragmatic/src';
|
|
7
7
|
import { LANG } from '@paypal/sdk-constants/src';
|
|
8
8
|
|
|
9
9
|
import { Text } from '../ui/text';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
4
|
import { COUNTRY, FUNDING_BRAND_LABEL } from '@paypal/sdk-constants/src';
|
|
5
|
-
import { node, Fragment } from 'jsx-pragmatic/src';
|
|
5
|
+
import { node, Fragment } from '@krakenjs/jsx-pragmatic/src';
|
|
6
6
|
import { CreditLogo, PPLogo, PayPalLogo, LOGO_COLOR } from '@paypal/sdk-logos/src';
|
|
7
7
|
|
|
8
8
|
import { BUTTON_COLOR, BUTTON_LAYOUT, DEFAULT, BUTTON_FLOW } from '../../constants';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
4
|
import { IdealLogo } from '@paypal/sdk-logos/src';
|
|
5
|
-
import { Fragment, node } from 'jsx-pragmatic/src';
|
|
5
|
+
import { Fragment, node } from '@krakenjs/jsx-pragmatic/src';
|
|
6
6
|
|
|
7
7
|
import { BUTTON_LAYOUT } from '../../constants';
|
|
8
8
|
import { DEFAULT_FUNDING_CONFIG, type FundingSourceConfig, BasicLabel } from '../common';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import type { FundingEligibilityType } from '@paypal/sdk-client/src';
|
|
5
5
|
import { FUNDING } from '@paypal/sdk-constants/src';
|
|
6
|
-
import { node, Style } from 'jsx-pragmatic/src';
|
|
6
|
+
import { node, Style } from '@krakenjs/jsx-pragmatic/src';
|
|
7
7
|
import { PPLogo, LOGO_COLOR } from '@paypal/sdk-logos/src';
|
|
8
8
|
|
|
9
9
|
import { BUTTON_COLOR, BUTTON_LAYOUT, DEFAULT } from '../../constants';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
|
-
import { node, Fragment, Style, type ChildType } from 'jsx-pragmatic/src';
|
|
4
|
+
import { node, Fragment, Style, type ChildType } from '@krakenjs/jsx-pragmatic/src';
|
|
5
5
|
import { PPLogo, PayPalLogo, CreditLogo, CreditMark, PayPalMark, GlyphCard, GlyphBank, LOGO_CLASS } from '@paypal/sdk-logos/src';
|
|
6
6
|
import { FUNDING, WALLET_INSTRUMENT } from '@paypal/sdk-constants/src';
|
|
7
7
|
|
package/src/interface/button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
|
|
3
3
|
import { isPayPalDomain } from '@paypal/sdk-client/src';
|
|
4
|
-
import { PopupOpenError as _PopupOpenError, destroy as zoidDestroy, destroyComponents } from 'zoid/src';
|
|
4
|
+
import { PopupOpenError as _PopupOpenError, destroy as zoidDestroy, destroyComponents } from '@krakenjs/zoid/src';
|
|
5
5
|
|
|
6
6
|
import type { LazyExport, LazyProtectedExport } from '../types';
|
|
7
7
|
import { allowIframe as _allowIframe } from '../lib';
|
package/src/lib/security.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
|
|
3
|
-
import { isSameDomain } from 'cross-domain-utils/src';
|
|
4
|
-
import { supportsPopups } from 'belter/src';
|
|
3
|
+
import { isSameDomain } from '@krakenjs/cross-domain-utils/src';
|
|
4
|
+
import { supportsPopups } from '@krakenjs/belter/src';
|
|
5
5
|
import { isPayPalDomain } from '@paypal/sdk-client/src';
|
|
6
6
|
|
|
7
7
|
export function allowIframe() : boolean {
|
package/src/lib/session.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
|
|
3
|
-
import { ZalgoPromise } from 'zalgo-promise/src';
|
|
3
|
+
import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
|
|
4
4
|
import { getSessionID as getSDKSessionID, getStorageState, getSessionState } from '@paypal/sdk-client/src';
|
|
5
5
|
|
|
6
6
|
export type StateGetSet = {|
|
package/src/marks/component.jsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
|
-
import { node, dom } from 'jsx-pragmatic/src';
|
|
5
|
-
import { ZalgoPromise } from 'zalgo-promise/src';
|
|
6
|
-
import { getElement, isDevice, memoize, isApplePaySupported, supportsPopups as userAgentSupportsPopups } from 'belter/src';
|
|
4
|
+
import { node, dom } from '@krakenjs/jsx-pragmatic/src';
|
|
5
|
+
import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
|
|
6
|
+
import { getElement, isDevice, memoize, isApplePaySupported, supportsPopups as userAgentSupportsPopups } from '@krakenjs/belter/src';
|
|
7
7
|
import { PLATFORM, FUNDING } from '@paypal/sdk-constants/src';
|
|
8
8
|
import { getRememberedFunding } from '@paypal/funding-components/src';
|
|
9
9
|
import { getComponents, getFundingEligibility, getEnv } from '@paypal/sdk-client/src';
|
package/src/marks/template.jsx
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
4
|
import { FUNDING, ENV } from '@paypal/sdk-constants/src';
|
|
5
|
-
import { node, type ChildNodeType, type ElementNode } from 'jsx-pragmatic/src';
|
|
5
|
+
import { node, type ChildNodeType, type ElementNode } from '@krakenjs/jsx-pragmatic/src';
|
|
6
6
|
import { getLocale, type FundingEligibilityType } from '@paypal/sdk-client/src';
|
|
7
|
-
import { toPx } from 'belter/src';
|
|
7
|
+
import { toPx } from '@krakenjs/belter/src';
|
|
8
8
|
|
|
9
9
|
import type { Experiment } from '../types';
|
|
10
10
|
import { getFundingConfig } from '../funding';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
import type { FundingEligibilityType } from '@paypal/sdk-client/src';
|
|
5
5
|
import { FUNDING, ENV, type LocaleType } from '@paypal/sdk-constants/src';
|
|
6
|
-
import { node, type ElementNode } from 'jsx-pragmatic/src';
|
|
6
|
+
import { node, type ElementNode } from '@krakenjs/jsx-pragmatic/src';
|
|
7
7
|
import { LOGO_COLOR, LOGO_CLASS } from '@paypal/sdk-logos/src';
|
|
8
|
-
import { noop, preventClickFocus, isBrowser, isElement } from 'belter/src';
|
|
8
|
+
import { noop, preventClickFocus, isBrowser, isElement } from '@krakenjs/belter/src';
|
|
9
9
|
|
|
10
10
|
import type { ContentType, Wallet, Experiment, WalletInstrument } from '../../types';
|
|
11
11
|
import { ATTRIBUTE, CLASS, BUTTON_COLOR, BUTTON_NUMBER, EXPERIENCE, TEXT_COLOR, BUTTON_FLOW } from '../../constants';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
import { LOGO_CLASS } from '@paypal/sdk-logos/src';
|
|
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
|
import { CLASS } from '../../../constants';
|
|
7
7
|
import { BUTTON_SIZE_STYLE } from '../config';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
import { LOGO_CLASS } from '@paypal/sdk-logos/src';
|
|
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
|
import { BUTTON_SIZE_STYLE } from '../config';
|
|
7
7
|
import { CLASS } from '../../../constants';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
|
-
import { node, type ElementNode } from 'jsx-pragmatic/src';
|
|
4
|
+
import { node, type ElementNode } from '@krakenjs/jsx-pragmatic/src';
|
|
5
5
|
import { FUNDING, WALLET_INSTRUMENT } from '@paypal/sdk-constants/src';
|
|
6
|
-
import { noop } from 'belter/src';
|
|
6
|
+
import { noop } from '@krakenjs/belter/src';
|
|
7
7
|
|
|
8
8
|
import type { Wallet, WalletInstrument } from '../../types';
|
|
9
9
|
import { CLASS, BUTTON_NUMBER, BUTTON_LAYOUT, BUTTON_FLOW, EXPERIENCE } from '../../constants';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
/** @jsxFrag Fragment */
|
|
4
4
|
|
|
5
|
-
import { node, Fragment, type ChildType } from 'jsx-pragmatic/src';
|
|
5
|
+
import { node, Fragment, type ChildType } from '@krakenjs/jsx-pragmatic/src';
|
|
6
6
|
import { LANG } from '@paypal/sdk-constants/src';
|
|
7
7
|
import { PayPalLogo, LOGO_COLOR } from '@paypal/sdk-logos/src';
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
|
-
import { node, type ChildType, Style } from 'jsx-pragmatic/src';
|
|
4
|
+
import { node, type ChildType, Style } from '@krakenjs/jsx-pragmatic/src';
|
|
5
5
|
|
|
6
6
|
import { ATTRIBUTE, TEXT_COLOR } from '../../../constants';
|
|
7
7
|
import { Chevron } from '../../chevron';
|
|
@@ -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
|
import { type LocaleType } from '@paypal/sdk-constants/src';
|
|
6
6
|
import { LOGO_COLOR, LOGO_CLASS } from '@paypal/sdk-logos/src';
|
|
7
7
|
|
package/src/ui/buttons/props.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* eslint-disable max-lines, eslint-comments/disable-enable-pair */
|
|
2
2
|
/* @flow */
|
|
3
3
|
|
|
4
|
-
import { ZalgoPromise } from 'zalgo-promise/src';
|
|
5
|
-
import { values, uniqueID } from 'belter/src';
|
|
4
|
+
import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
|
|
5
|
+
import { values, uniqueID } from '@krakenjs/belter/src';
|
|
6
6
|
import { type OrderCreateRequest, type FundingEligibilityType,
|
|
7
7
|
type OrderGetResponse, type OrderCaptureResponse, type OrderAuthorizeResponse } from '@paypal/sdk-client/src';
|
|
8
8
|
import { FUNDING, PLATFORM, INTENT, COMMIT, VAULT,
|
|
9
9
|
ENV, COUNTRY, LANG, COUNTRY_LANGS, type LocaleType, CARD, COMPONENTS } from '@paypal/sdk-constants/src';
|
|
10
|
-
import { type CrossDomainWindowType } from 'cross-domain-utils/src';
|
|
10
|
+
import { type CrossDomainWindowType } from '@krakenjs/cross-domain-utils/src';
|
|
11
11
|
import { LOGO_COLOR } from '@paypal/sdk-logos/src';
|
|
12
12
|
import { SUPPORTED_FUNDING_SOURCES } from '@paypal/funding-components/src';
|
|
13
|
-
import type { ComponentFunctionType } from 'jsx-pragmatic/src';
|
|
13
|
+
import type { ComponentFunctionType } from '@krakenjs/jsx-pragmatic/src';
|
|
14
14
|
|
|
15
15
|
import type { ContentType, CustomStyle, Wallet, Experiment } from '../../types';
|
|
16
16
|
import { BUTTON_LABEL, BUTTON_COLOR, BUTTON_LAYOUT, BUTTON_SHAPE, BUTTON_SIZE, BUTTON_FLOW, MENU_PLACEMENT } from '../../constants';
|
package/src/ui/buttons/style.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
|
-
import { node, type ElementNode } from 'jsx-pragmatic/src';
|
|
4
|
+
import { node, type ElementNode } from '@krakenjs/jsx-pragmatic/src';
|
|
5
5
|
import { type FundingEligibilityType } from '@paypal/sdk-constants/src';
|
|
6
6
|
|
|
7
7
|
import { type ButtonStyle } from './props';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
|
|
3
|
-
import { max, perc, roundUp } from 'belter/src';
|
|
3
|
+
import { max, perc, roundUp } from '@krakenjs/belter/src';
|
|
4
4
|
import { FUNDING, type FundingEligibilityType } from '@paypal/sdk-constants/src';
|
|
5
5
|
|
|
6
6
|
import { BUTTON_SHAPE, BUTTON_LAYOUT, BUTTON_NUMBER, CLASS, ATTRIBUTE } from '../../../constants';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @jsx node */
|
|
3
3
|
|
|
4
4
|
import { FUNDING, type LocaleType } from '@paypal/sdk-constants/src';
|
|
5
|
-
import { node, Fragment, type ElementNode } from 'jsx-pragmatic/src';
|
|
5
|
+
import { node, Fragment, type ElementNode } from '@krakenjs/jsx-pragmatic/src';
|
|
6
6
|
|
|
7
7
|
import { CLASS } from '../../constants';
|
|
8
8
|
import { getFundingConfig } from '../../funding';
|
package/src/ui/chevron.jsx
CHANGED
package/src/ui/loading.jsx
CHANGED
|
@@ -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 LoadingDots({ color = 'rgba(0, 0, 0, 0.5)', delay = 0.2 } : {| color : string, delay : number |}) : ChildType {
|
|
7
7
|
return (
|
package/src/ui/text/text.jsx
CHANGED
|
@@ -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
|
|
package/src/ui/tracking.jsx
CHANGED
|
@@ -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,11 +7,11 @@ 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';
|
|
@@ -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';
|
package/src/zoid/buttons/util.js
CHANGED
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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
|
|
|
@@ -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
|
|