nuclide-commons-ui
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -48,2 +48,3 @@ 'use strict'; | ||
const textBuffer = props.textBuffer || new _atom.TextBuffer(); | ||
// flowlint-next-line sketchy-null-string:off | ||
if (props.path) { | ||
@@ -71,2 +72,3 @@ textBuffer.setPath(props.path); | ||
// flowlint-next-line sketchy-null-string:off | ||
if (props.placeholderText) { | ||
@@ -73,0 +75,0 @@ textEditor.setPlaceholderText(props.placeholderText); |
{ | ||
"name": "nuclide-commons-ui", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Common Nuclide UI components.", | ||
@@ -16,4 +16,5 @@ "license": "BSD-3-Clause", | ||
"classnames": "2.2.5", | ||
"nuclide-commons": "0.1.10", | ||
"nuclide-commons-atom": "0.1.10", | ||
"escape-string-regexp": "1.0.5", | ||
"nuclide-commons": "0.1.11", | ||
"nuclide-commons-atom": "0.1.11", | ||
"react": "15.3.1", | ||
@@ -20,0 +21,0 @@ "react-dom": "15.3.1", |
@@ -16,16 +16,2 @@ 'use strict'; | ||
*/ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
* @format | ||
*/ | ||
/* global HTMLElement */ | ||
class ReactMountRootElement extends HTMLElement { | ||
@@ -50,6 +36,32 @@ | ||
} | ||
} /** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
* @format | ||
*/ | ||
/* global HTMLElement */ | ||
let reactMountRootElement; | ||
try { | ||
reactMountRootElement = document.registerElement('nuclide-react-mount-root', { | ||
prototype: ReactMountRootElement.prototype | ||
}); | ||
} catch (e) { | ||
// Element was already registered. Retrieve its constructor: | ||
const oldElem = document.createElement('nuclide-react-mount-root'); | ||
if (!(oldElem.constructor.name === 'nuclide-react-mount-root')) { | ||
throw new Error('Invariant violation: "oldElem.constructor.name === \'nuclide-react-mount-root\'"'); | ||
} | ||
reactMountRootElement = oldElem.constructor; | ||
} | ||
exports.default = document.registerElement('nuclide-react-mount-root', { | ||
prototype: ReactMountRootElement.prototype | ||
}); | ||
exports.default = reactMountRootElement; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231958
99
3377
8
+ Addedescape-string-regexp@1.0.5
+ Addednuclide-commons@0.1.11(transitive)
+ Addednuclide-commons-atom@0.1.11(transitive)
- Removednuclide-commons@0.1.10(transitive)
- Removednuclide-commons-atom@0.1.10(transitive)
Updatednuclide-commons@0.1.11
Updatednuclide-commons-atom@0.1.11