Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/portal

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/portal - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

5

CHANGELOG.md
# @atlaskit/portal
## 0.0.13
- [patch] [3f5a4dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f5a4dd):
- Replaces our own check for dom in ssr with exenv package
## 0.0.12

@@ -4,0 +9,0 @@ - [patch] fixes problem with the DOM container for portal not creating a new stacking context [aaab348](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/aaab348)

4

dist/cjs/components/Portal.js

@@ -30,3 +30,3 @@ "use strict";

var _canUseDom = _interopRequireDefault(require("../utils/canUseDom"));
var _exenv = require("exenv");

@@ -81,3 +81,3 @@ var createContainer = function createContainer(zIndex) {

(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "state", {
container: (0, _canUseDom.default)() ? createContainer(_this.props.zIndex) : undefined
container: _exenv.canUseDom ? createContainer(_this.props.zIndex) : undefined
});

@@ -84,0 +84,0 @@ return _this;

@@ -11,3 +11,3 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";

import invariant from 'tiny-invariant';
import canUseDOM from '../utils/canUseDom';
import { canUseDom } from 'exenv';

@@ -63,3 +63,3 @@ var createContainer = function createContainer(zIndex) {

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
container: canUseDOM() ? createContainer(_this.props.zIndex) : undefined
container: canUseDom ? createContainer(_this.props.zIndex) : undefined
});

@@ -66,0 +66,0 @@

{
"name": "@atlaskit/portal",
"version": "0.0.12",
"version": "0.0.13",
"sideEffects": false
}
{
"name": "@atlaskit/portal",
"version": "0.0.12",
"version": "0.0.13",
"description": "Atlaskit wrapper for rendering components in React portals",

@@ -23,2 +23,3 @@ "license": "Apache-2.0",

"babel-runtime": "^6.26.0",
"exenv": "^1.2.2",
"tiny-invariant": "^0.0.3"

@@ -33,8 +34,8 @@ },

"@atlaskit/docs": "^5.0.8",
"@atlaskit/flag": "^9.1.2",
"@atlaskit/flag": "^9.1.3",
"@atlaskit/icon": "^14.0.2",
"@atlaskit/inline-dialog": "^9.0.7",
"@atlaskit/modal-dialog": "^7.0.4",
"@atlaskit/onboarding": "^6.0.4",
"@atlaskit/tooltip": "^12.1.5",
"@atlaskit/modal-dialog": "^7.0.8",
"@atlaskit/onboarding": "^6.1.7",
"@atlaskit/tooltip": "^12.1.8",
"@atlaskit/visual-regression": "^0.0.1",

@@ -41,0 +42,0 @@ "enzyme": "https://registry.npmjs.org/@pgleeson/enzyme/-/enzyme-3.3.7.tgz",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc