Skip to content

Commit

Permalink
chore: update packages to krakenjs scope (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
westeezy authored Apr 4, 2022
1 parent 2f1c904 commit 3ad7ca1
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
[libs]
flow-typed
node_modules/grumbler-scripts/declarations.js
node_modules/zoid/src/declarations.js
node_modules/post-robot/src/declarations.js
node_modules/@krakenjs/zoid/src/declarations.js
node_modules/@krakenjs/post-robot/src/declarations.js
node_modules/@paypal/sdk-client/src/declarations.js
src/declarations.js
test/declarations.js
Expand Down
8 changes: 4 additions & 4 deletions globals.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* eslint import/no-commonjs: off, flowtype/require-valid-file-annotation: off, flowtype/require-return-type: off */

const postRobotGlobals = require('post-robot/globals');
const zoidGlobals = require('zoid/globals');
const postRobotGlobals = require('@krakenjs/post-robot/globals');
const zoidGlobals = require('@krakenjs/zoid/globals');

module.exports = {

__ZOID__: {
...zoidGlobals.__ZOID__,
__DEFAULT_CONTAINER__: true,
__DEFAULT_PRERENDER__: true,
__FRAMEWORK_SUPPORT__: true
},

__POST_ROBOT__: {
...postRobotGlobals.__POST_ROBOT__,
__IE_POPUP_SUPPORT__: false
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@
"sync-browser-mocks": "^2.0.0"
},
"dependencies": {
"@paypal/sdk-client": "^4.0.162",
"@paypal/sdk-client": "^4.0.166",
"@paypal/sdk-constants": "^1.0.114",
"@paypal/sdk-logos": "^1.0.41",
"belter": "^1.0.2",
"jsx-pragmatic": "^2",
"post-robot": "^10.0.0",
"zalgo-promise": "^1.0.10",
"zoid": "^9.0.82"
"@paypal/sdk-logos": "^1.0.45",
"@krakenjs/belter": "^2.0.0",
"@krakenjs/jsx-pragmatic": "^3.0.0",
"@krakenjs/post-robot": "^11.0.0",
"@krakenjs/zalgo-promise": "^2.0.0",
"@krakenjs/zoid": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion src/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { isPayPalDomain } from '@paypal/sdk-client/src';
// eslint-disable-next-line import/no-namespace
import * as postRobotModule from 'post-robot/src';
import * as postRobotModule from '@krakenjs/post-robot/src';

import { getThreeDomainSecureComponent, type TDSComponent } from './three-domain-secure';

Expand Down
2 changes: 1 addition & 1 deletion src/overlay/style.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import { CONTEXT } from 'zoid/src';
import { CONTEXT } from '@krakenjs/zoid/src';

export const CLASS = {
OUTLET: 'outlet',
Expand Down
8 changes: 4 additions & 4 deletions src/overlay/template.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
/** @jsx node */
/* eslint max-lines: off, react/jsx-max-depth: off */

import { isIos, isFirefox, animate, noop, destroyElement, uniqueID, supportsPopups, type EventEmitterType, toCSS } from 'belter/src';
import { EVENT, CONTEXT } from 'zoid/src';
import { node, type ElementNode } from 'jsx-pragmatic/src';
import { isIos, isFirefox, animate, noop, destroyElement, uniqueID, supportsPopups, type EventEmitterType, toCSS } from '@krakenjs/belter/src';
import { EVENT, CONTEXT } from '@krakenjs/zoid/src';
import { node, type ElementNode } from '@krakenjs/jsx-pragmatic/src';
import { LOGO_COLOR, PPLogo, PayPalLogo } from '@paypal/sdk-logos/src';
import type { ZalgoPromise } from 'zalgo-promise/src';
import type { ZalgoPromise } from '@krakenjs/zalgo-promise/src';

import { getContainerStyle, getSandboxStyle, CLASS } from './style';

Expand Down
8 changes: 4 additions & 4 deletions src/three-domain-secure/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
/** @jsx node */
/* eslint max-lines: 0 */

import { node, dom } from 'jsx-pragmatic/src';
import { create, type ZoidComponent } from 'zoid/src';
import { inlineMemoize, noop } from 'belter/src';
import { node, dom } from '@krakenjs/jsx-pragmatic/src';
import { create, type ZoidComponent } from '@krakenjs/zoid/src';
import { inlineMemoize, noop } from '@krakenjs/belter/src';
import { getSDKMeta, getClientID, getCSPNonce } from '@paypal/sdk-client/src';
import { ZalgoPromise } from 'zalgo-promise/src';
import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';

import { Overlay } from '../overlay';
import { getThreeDomainSecureUrl } from '../config';
Expand Down
2 changes: 1 addition & 1 deletion src/ui/spinner.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */
/** @jsx node */

import { node, type ElementNode, type ChildrenType } from 'jsx-pragmatic/src';
import { node, type ElementNode, type ChildrenType } from '@krakenjs/jsx-pragmatic/src';

const spinnerStyle = `
Expand Down
2 changes: 1 addition & 1 deletion src/ui/venmoSpinner.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */
/** @jsx node */

import { node, Fragment, type ElementNode, type ChildrenType, type ComponentNode } from 'jsx-pragmatic/src';
import { node, Fragment, type ElementNode, type ChildrenType, type ComponentNode } from '@krakenjs/jsx-pragmatic/src';

const spinnerStyle = `
body {
Expand Down
10 changes: 5 additions & 5 deletions test/integration/tests/overlay/happy.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* @flow */
/** @jsx node */

import { node, dom } from 'jsx-pragmatic/src';
import { ZalgoPromise } from 'zalgo-promise/src';
import { node, dom } from '@krakenjs/jsx-pragmatic/src';
import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';

import { Overlay } from '../../../../src/overlay';

Expand Down Expand Up @@ -49,7 +49,7 @@ describe(`paypal overlay component happy path`, () => {
nonce={ nonce }
fullScreen={ fullScreen }
/>);

const addOverlayToDOM = (child) => {
// $FlowFixMe
document.body.appendChild(child);
Expand Down Expand Up @@ -124,7 +124,7 @@ describe(`paypal overlay component happy path`, () => {
it('should be able to close the overlay using close button', () => {
const domNode = getOverlay().render(dom());
addOverlayToDOM(domNode);

getOverlayContainer(domNode).querySelector('.paypal-checkout-close').click();

if (getOverlayContainer(domNode).querySelector('.paypal-checkout-sandbox')) {
Expand All @@ -135,7 +135,7 @@ describe(`paypal overlay component happy path`, () => {
it('should be able to focus on the overlay by clicking on it', () => {
const domNode = getOverlay().render(dom());
addOverlayToDOM(domNode);

getOverlayContainer(domNode).querySelector('.paypal-checkout-overlay').click();

if (!focussed) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/tests/spinner-page/happy.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */
/** @jsx node */

import { node, dom } from 'jsx-pragmatic/src';
import { node, dom } from '@krakenjs/jsx-pragmatic/src';

import { SpinnerPage } from '../../../../src/ui';

Expand Down
2 changes: 1 addition & 1 deletion test/integration/tests/three-domain-secure/happy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */
/* eslint max-lines: 0 */

import { wrapPromise } from 'belter/src';
import { wrapPromise } from '@krakenjs/belter/src';

describe(`paypal 3ds component happy path`, () => {

Expand Down

0 comments on commit 3ad7ca1

Please sign in to comment.