@mongodb-js/compass-shell 2.19.2 → 2.22.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 +26201 -1676
- package/lib/2.js +28 -18
- package/lib/index.js +2299 -5088
- package/package.json +19 -22
package/lib/2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(window["webpackJsonpCompassShellPlugin"] = window["webpackJsonpCompassShellPlugin"] || []).push([[2],{
|
|
2
2
|
|
|
3
|
-
/***/
|
|
3
|
+
/***/ 466:
|
|
4
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -15,17 +15,17 @@ var external_react_ = __webpack_require__(2);
|
|
|
15
15
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
16
16
|
|
|
17
17
|
// EXTERNAL MODULE: external "prop-types"
|
|
18
|
-
var external_prop_types_ = __webpack_require__(
|
|
18
|
+
var external_prop_types_ = __webpack_require__(163);
|
|
19
19
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
20
20
|
|
|
21
|
-
// EXTERNAL MODULE: ./node_modules/react-redux/es/index.js +
|
|
22
|
-
var es = __webpack_require__(
|
|
21
|
+
// EXTERNAL MODULE: ./node_modules/react-redux/es/index.js + 23 modules
|
|
22
|
+
var es = __webpack_require__(159);
|
|
23
23
|
|
|
24
|
-
// EXTERNAL MODULE: /Users/
|
|
25
|
-
var mongosh_browser_repl = __webpack_require__(
|
|
24
|
+
// EXTERNAL MODULE: /Users/rhys/Documents/mongodb/compass/node_modules/@mongosh/browser-repl/lib/mongosh-browser-repl.js
|
|
25
|
+
var mongosh_browser_repl = __webpack_require__(392);
|
|
26
26
|
|
|
27
27
|
// EXTERNAL MODULE: external "@mongodb-js/compass-components"
|
|
28
|
-
var compass_components_ = __webpack_require__(
|
|
28
|
+
var compass_components_ = __webpack_require__(374);
|
|
29
29
|
|
|
30
30
|
// CONCATENATED MODULE: ./src/components/info-modal/keyboard-shortcuts-table.jsx
|
|
31
31
|
|
|
@@ -84,7 +84,7 @@ function KeyboardShortcutsTable() {
|
|
|
84
84
|
label: "Key"
|
|
85
85
|
}), /*#__PURE__*/external_react_default.a.createElement(compass_components_["TableHeader"], {
|
|
86
86
|
key: 'value',
|
|
87
|
-
label: "
|
|
87
|
+
label: "Description"
|
|
88
88
|
})]
|
|
89
89
|
}, ({
|
|
90
90
|
datum
|
|
@@ -98,7 +98,7 @@ function KeyboardShortcutsTable() {
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
// EXTERNAL MODULE: ./package.json
|
|
101
|
-
var package_0 = __webpack_require__(
|
|
101
|
+
var package_0 = __webpack_require__(55);
|
|
102
102
|
|
|
103
103
|
// CONCATENATED MODULE: ./src/components/info-modal/info-modal.jsx
|
|
104
104
|
|
|
@@ -110,9 +110,6 @@ const mongoshVersion = `v${package_0.dependencies['@mongosh/browser-repl'].repla
|
|
|
110
110
|
const modalContentWrapperStyles = Object(compass_components_["css"])({
|
|
111
111
|
padding: 'initial'
|
|
112
112
|
});
|
|
113
|
-
const bannerStyles = Object(compass_components_["css"])({
|
|
114
|
-
marginTop: compass_components_["spacing"][4]
|
|
115
|
-
});
|
|
116
113
|
const shortcutsTableContainerStyles = Object(compass_components_["css"])({
|
|
117
114
|
marginTop: compass_components_["spacing"][2],
|
|
118
115
|
maxHeight: '50vh',
|
|
@@ -144,18 +141,15 @@ function InfoModal({
|
|
|
144
141
|
contentClassName: modalContentWrapperStyles
|
|
145
142
|
}, /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
146
143
|
className: modalContentStyles
|
|
147
|
-
}, /*#__PURE__*/external_react_default.a.createElement(compass_components_["
|
|
148
|
-
className: bannerStyles
|
|
149
|
-
}, "For more information please visit the\xA0", /*#__PURE__*/external_react_default.a.createElement(compass_components_["Link"], {
|
|
144
|
+
}, /*#__PURE__*/external_react_default.a.createElement(compass_components_["ModalTitle"], null, "mongosh ", mongoshVersion), /*#__PURE__*/external_react_default.a.createElement(compass_components_["Banner"], null, "For more information please visit the\xA0", /*#__PURE__*/external_react_default.a.createElement(compass_components_["Link"], {
|
|
150
145
|
id: "mongosh-info-link",
|
|
151
|
-
rel: "noreopener",
|
|
152
146
|
href: "https://docs.mongodb.com/compass/beta/embedded-shell/",
|
|
153
147
|
target: "_blank"
|
|
154
148
|
}, "MongoDB Shell Documentation"), "."), /*#__PURE__*/external_react_default.a.createElement(compass_components_["Subtitle"], {
|
|
155
149
|
className: shortcutsTitleStyles
|
|
156
150
|
}, "Keyboard Shortcuts"), /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
157
151
|
className: shortcutsTableContainerStyles
|
|
158
|
-
}, /*#__PURE__*/external_react_default.a.createElement(KeyboardShortcutsTable, null))), /*#__PURE__*/external_react_default.a.createElement(compass_components_["
|
|
152
|
+
}, /*#__PURE__*/external_react_default.a.createElement(KeyboardShortcutsTable, null))), /*#__PURE__*/external_react_default.a.createElement(compass_components_["ModalFooter"], null, /*#__PURE__*/external_react_default.a.createElement(compass_components_["Button"], {
|
|
159
153
|
onClick: hideInfoModal
|
|
160
154
|
}, "Close")));
|
|
161
155
|
}
|
|
@@ -185,11 +179,26 @@ const shellHeaderLeftStyles = Object(compass_components_["css"])({
|
|
|
185
179
|
display: 'flex',
|
|
186
180
|
alignItems: 'center'
|
|
187
181
|
});
|
|
182
|
+
const shellHeaderDefaultColor = compass_components_["uiColors"].gray.light1;
|
|
183
|
+
const shellHeaderFlashColorDark = compass_components_["uiColors"].gray.base;
|
|
184
|
+
const shellHeaderFlashColorLight = compass_components_["uiColors"].gray.light2;
|
|
185
|
+
const shellLoaderFlash = compass_components_["keyframes"]`
|
|
186
|
+
0% { color: ${shellHeaderDefaultColor}; }
|
|
187
|
+
10% { color: ${shellHeaderFlashColorDark}; }
|
|
188
|
+
20% { color: ${shellHeaderFlashColorLight}; }
|
|
189
|
+
30% { color: ${shellHeaderFlashColorDark}; }
|
|
190
|
+
40% { color: ${shellHeaderFlashColorLight}; }
|
|
191
|
+
50% { color: ${shellHeaderFlashColorDark}; }
|
|
192
|
+
60% { color: ${shellHeaderFlashColorLight}; }
|
|
193
|
+
70% { color: ${shellHeaderFlashColorDark}; }
|
|
194
|
+
80% { color: ${shellHeaderFlashColorLight}; }
|
|
195
|
+
100% { color: ${shellHeaderDefaultColor}; }
|
|
196
|
+
`;
|
|
188
197
|
const shellHeaderToggleStyles = Object(compass_components_["css"])({
|
|
189
198
|
background: 'none',
|
|
190
199
|
border: 'none',
|
|
191
200
|
cursor: 'pointer',
|
|
192
|
-
color:
|
|
201
|
+
color: shellHeaderDefaultColor,
|
|
193
202
|
padding: `0px ${compass_components_["spacing"][2]}px`,
|
|
194
203
|
height: '100%',
|
|
195
204
|
display: 'flex',
|
|
@@ -203,6 +212,7 @@ const shellHeaderToggleStyles = Object(compass_components_["css"])({
|
|
|
203
212
|
transition: 'all 200ms',
|
|
204
213
|
userSelect: 'none',
|
|
205
214
|
textTransform: 'uppercase',
|
|
215
|
+
animation: `${shellLoaderFlash} 2s linear`,
|
|
206
216
|
'&:hover': {
|
|
207
217
|
color: compass_components_["uiColors"].gray.light3
|
|
208
218
|
}
|