@mongodb-js/compass-shell 2.26.0 → 3.0.0
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/lib/1.js +49901 -18119
- package/lib/2.js +26 -25
- package/lib/index.js +14182 -17942
- package/package.json +23 -27
package/lib/2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(window["webpackJsonpCompassShellPlugin"] = window["webpackJsonpCompassShellPlugin"] || []).push([[2],{
|
|
2
2
|
|
|
3
|
-
/***/
|
|
3
|
+
/***/ 484:
|
|
4
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -14,18 +14,18 @@ __webpack_require__.d(__webpack_exports__, "CompassShell", function() { return /
|
|
|
14
14
|
var external_react_ = __webpack_require__(2);
|
|
15
15
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
16
16
|
|
|
17
|
-
// EXTERNAL MODULE:
|
|
18
|
-
var
|
|
19
|
-
var
|
|
17
|
+
// EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/prop-types/index.js
|
|
18
|
+
var prop_types = __webpack_require__(128);
|
|
19
|
+
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
20
20
|
|
|
21
21
|
// EXTERNAL MODULE: ./node_modules/react-redux/es/index.js + 23 modules
|
|
22
|
-
var es = __webpack_require__(
|
|
22
|
+
var es = __webpack_require__(124);
|
|
23
23
|
|
|
24
|
-
// EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/
|
|
25
|
-
var mongosh_browser_repl = __webpack_require__(
|
|
24
|
+
// EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/@mongosh/browser-repl/lib/mongosh-browser-repl.js
|
|
25
|
+
var mongosh_browser_repl = __webpack_require__(292);
|
|
26
26
|
|
|
27
27
|
// EXTERNAL MODULE: external "@mongodb-js/compass-components"
|
|
28
|
-
var compass_components_ = __webpack_require__(
|
|
28
|
+
var compass_components_ = __webpack_require__(249);
|
|
29
29
|
|
|
30
30
|
// CONCATENATED MODULE: ./src/components/info-modal/keyboard-shortcuts-table.jsx
|
|
31
31
|
|
|
@@ -97,16 +97,12 @@ function KeyboardShortcutsTable() {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
// EXTERNAL MODULE: ./package.json
|
|
101
|
-
var package_0 = __webpack_require__(55);
|
|
102
|
-
|
|
103
100
|
// CONCATENATED MODULE: ./src/components/info-modal/info-modal.jsx
|
|
104
101
|
|
|
105
102
|
|
|
106
103
|
|
|
107
104
|
|
|
108
|
-
|
|
109
|
-
const mongoshVersion = `v${package_0.dependencies['@mongosh/browser-repl'].replace('^', '')}`;
|
|
105
|
+
const mongoshVersion = `v${__webpack_require__(480).version}`;
|
|
110
106
|
const modalContentWrapperStyles = Object(compass_components_["css"])({
|
|
111
107
|
padding: 'initial'
|
|
112
108
|
});
|
|
@@ -155,8 +151,8 @@ function InfoModal({
|
|
|
155
151
|
}
|
|
156
152
|
|
|
157
153
|
InfoModal.propTypes = {
|
|
158
|
-
hideInfoModal:
|
|
159
|
-
show:
|
|
154
|
+
hideInfoModal: prop_types_default.a.func.isRequired,
|
|
155
|
+
show: prop_types_default.a.bool.isRequired
|
|
160
156
|
};
|
|
161
157
|
/* harmony default export */ var info_modal = (InfoModal);
|
|
162
158
|
// CONCATENATED MODULE: ./src/components/info-modal/index.js
|
|
@@ -299,10 +295,10 @@ class shell_header_ShellHeader extends external_react_["Component"] {
|
|
|
299
295
|
}
|
|
300
296
|
|
|
301
297
|
_defineProperty(shell_header_ShellHeader, "propTypes", {
|
|
302
|
-
isExpanded:
|
|
303
|
-
isOperationInProgress:
|
|
304
|
-
onShellToggleClicked:
|
|
305
|
-
showInfoModal:
|
|
298
|
+
isExpanded: prop_types_default.a.bool.isRequired,
|
|
299
|
+
isOperationInProgress: prop_types_default.a.bool.isRequired,
|
|
300
|
+
onShellToggleClicked: prop_types_default.a.func.isRequired,
|
|
301
|
+
showInfoModal: prop_types_default.a.func.isRequired
|
|
306
302
|
});
|
|
307
303
|
|
|
308
304
|
/* harmony default export */ var shell_header = (shell_header_ShellHeader);
|
|
@@ -458,8 +454,12 @@ class compass_shell_CompassShell extends external_react_["Component"] {
|
|
|
458
454
|
this.setState({
|
|
459
455
|
showInfoModal: false
|
|
460
456
|
});
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
focusEditor() {
|
|
460
|
+
var _window$getSelection;
|
|
461
461
|
|
|
462
|
-
if (this.shellRef.current) {
|
|
462
|
+
if (this.shellRef.current && ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 ? void 0 : _window$getSelection.type) !== 'Range') {
|
|
463
463
|
this.shellRef.current.focusEditor();
|
|
464
464
|
}
|
|
465
465
|
}
|
|
@@ -493,7 +493,8 @@ class compass_shell_CompassShell extends external_react_["Component"] {
|
|
|
493
493
|
style: {
|
|
494
494
|
height: renderedHeight
|
|
495
495
|
},
|
|
496
|
-
id: "content"
|
|
496
|
+
id: "content",
|
|
497
|
+
onClick: this.focusEditor.bind(this)
|
|
497
498
|
}, /*#__PURE__*/external_react_default.a.createElement(compass_components_["ResizeHandle"], {
|
|
498
499
|
direction: compass_components_["ResizeDirection"].TOP,
|
|
499
500
|
onChange: newHeight => this.updateHeight(newHeight),
|
|
@@ -528,10 +529,10 @@ class compass_shell_CompassShell extends external_react_["Component"] {
|
|
|
528
529
|
}
|
|
529
530
|
|
|
530
531
|
compass_shell_defineProperty(compass_shell_CompassShell, "propTypes", {
|
|
531
|
-
emitShellPluginOpened:
|
|
532
|
-
runtime:
|
|
533
|
-
shellOutput:
|
|
534
|
-
historyStorage:
|
|
532
|
+
emitShellPluginOpened: prop_types_default.a.func,
|
|
533
|
+
runtime: prop_types_default.a.object,
|
|
534
|
+
shellOutput: prop_types_default.a.array,
|
|
535
|
+
historyStorage: prop_types_default.a.object
|
|
535
536
|
});
|
|
536
537
|
|
|
537
538
|
compass_shell_defineProperty(compass_shell_CompassShell, "defaultProps", {
|