@mongodb-js/compass-shell 3.20.4 → 3.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.
@@ -247,8 +247,25 @@
247
247
  * MIT Licensed
248
248
  */
249
249
 
250
+ /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
251
+
250
252
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
251
253
 
254
+ /**
255
+ * @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
256
+ * CJS and ESM environments.
257
+ *
258
+ * @license
259
+ * Copyright (c) 2016, Contributors
260
+ * SPDX-License-Identifier: ISC
261
+ */
262
+
263
+ /**
264
+ * @license
265
+ * Copyright (c) 2016, Contributors
266
+ * SPDX-License-Identifier: ISC
267
+ */
268
+
252
269
  /**
253
270
  * @license
254
271
  * Lodash <https://lodash.com/>
@@ -47,7 +47,7 @@ export declare class CompassShell extends Component<CompassShellProps, CompassSh
47
47
  focusEditor(): void;
48
48
  render(): JSX.Element;
49
49
  }
50
- declare const _default: import("react-redux").ConnectedComponent<(props: Omit<CompassShellProps, "enableShell"> & Partial<Pick<CompassShellProps, "enableShell">>) => React.ReactElement<{}, string | React.JSXElementConstructor<any>>, {
50
+ declare const _default: import("react-redux").ConnectedComponent<React.FunctionComponent<Omit<CompassShellProps, "enableShell"> & Partial<Pick<CompassShellProps, "enableShell">>>, {
51
51
  enableShell?: boolean | undefined;
52
52
  shellOutput?: import("@mongosh/browser-repl/lib/components/shell-output-line").ShellOutputEntry[] | undefined;
53
53
  historyStorage?: HistoryStorage | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"compass-shell.d.ts","sourceRoot":"","sources":["../../../../src/components/compass-shell/compass-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,KAAK,EAAE,KA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AAiB,EAC5B,SAAS,EAAE,iBAAiB;IAW9B,oBAAoB;IAIpB,oBAAoB,WAAY,SAAS,gBAAgB,EAAE,UAEzD;IAEF,kBAAkB,aAIhB;IAEF,cAAc,aAIZ;IAEF,gBAAgB,aAId;IAEF,WAAW,YAAa,SAAS,MAAM,EAAE,UAavC;IAEF,WAAW,sBAiBT;IAEF,YAAY,CAAC,MAAM,EAAE,MAAM;IAe3B,aAAa;IAIb,WAAW;IAYX,MAAM;CA4EP;;;;;;;;AAED,wBAKoD"}
@@ -1,10 +1,12 @@
1
1
  import type { LoggerAndTelemetry } from '@mongodb-js/compass-logging/provider';
2
2
  import type { DataService } from 'mongodb-data-service';
3
+ import { type PreferencesAccess } from 'compass-preferences-model/provider';
3
4
  declare function activate(): void;
4
5
  declare function deactivate(): void;
5
6
  export declare const CompassShellPlugin: import("hadron-app-registry").HadronPluginComponent<unknown, {
6
7
  logger: () => LoggerAndTelemetry;
7
8
  dataService: () => DataService;
9
+ preferences: () => PreferencesAccess;
8
10
  }>;
9
11
  export { activate, deactivate };
10
12
  export { default as metadata } from '../package.json';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,iBAAS,QAAQ,IAAI,IAAI,CAExB;AAED,iBAAS,UAAU,IAAI,IAAI,CAE1B;AAED,eAAO,MAAM,kBAAkB;YAEnB,MAAM,kBAAkB;iBAAe,MAAM,WAAW;EAWnE,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oCAAoC,CAAC;AAE5C,iBAAS,QAAQ,IAAI,IAAI,CAExB;AAED,iBAAS,UAAU,IAAI,IAAI,CAE1B;AAED,eAAO,MAAM,kBAAkB;YAGnB,MAAM,kBAAkB;iBACnB,MAAM,WAAW;iBACjB,MAAM,iBAAiB;EAavC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import type AppRegistry from 'hadron-app-registry';
2
2
  import type { LoggerAndTelemetry } from '@mongodb-js/compass-logging';
3
3
  import type { DataService } from 'mongodb-data-service';
4
+ import type { PreferencesAccess } from 'compass-preferences-model';
4
5
  export declare function ShellPlugin(): JSX.Element | null;
5
- export declare function onActivated(_: unknown, { globalAppRegistry, logger, dataService, }: {
6
+ export declare function onActivated(_: unknown, { globalAppRegistry, logger, dataService, preferences, }: {
6
7
  globalAppRegistry: AppRegistry;
7
8
  logger: LoggerAndTelemetry;
8
9
  dataService: DataService;
10
+ preferences: PreferencesAccess;
9
11
  }): {
10
12
  store: import("redux").Store<import("./modules").RootState, import("./modules/runtime").RuntimeAction>;
11
13
  deactivate: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,wBAAgB,WAAW,uBA+B1B;AAED,wBAAgB,WAAW,CACzB,CAAC,EAAE,OAAO,EACV,EACE,iBAAiB,EACjB,MAAM,EACN,WAAW,GACZ,EAAE;IACD,iBAAiB,EAAE,WAAW,CAAC;IAC/B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,WAAW,CAAC;CAC1B;;;EAYF"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,wBAAgB,WAAW,uBA+B1B;AAED,wBAAgB,WAAW,CACzB,CAAC,EAAE,OAAO,EACV,EACE,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,WAAW,GACZ,EAAE;IACD,iBAAiB,EAAE,WAAW,CAAC;IAC/B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,iBAAiB,CAAC;CAChC;;;EAaF"}
@@ -1,16 +1,19 @@
1
1
  import type { Store } from 'redux';
2
2
  import type { RootAction, RootState } from '../modules';
3
3
  import type { LoggerAndTelemetry } from '@mongodb-js/compass-logging';
4
+ import type { PreferencesAccess } from 'compass-preferences-model';
4
5
  import type AppRegistry from 'hadron-app-registry';
5
6
  import type { DataService } from 'mongodb-data-service';
6
7
  export default class CompassShellStore {
7
8
  reduxStore: Store<RootState, RootAction>;
8
9
  constructor();
9
10
  globalAppRegistry: AppRegistry | null;
10
- onActivated({ globalAppRegistry, logger: { log, track, debug }, dataService, }: {
11
+ preferences: PreferencesAccess | null;
12
+ onActivated({ globalAppRegistry, logger: { log, track, debug }, dataService, preferences, }: {
11
13
  globalAppRegistry: AppRegistry;
12
14
  logger: LoggerAndTelemetry;
13
15
  dataService: DataService;
16
+ preferences: PreferencesAccess;
14
17
  }): () => void;
15
18
  onEnableShellChanged: (value: boolean) => void;
16
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,UAAU,EAAE,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;;IAMzC,iBAAiB,EAAE,WAAW,GAAG,IAAI,CAAQ;IAE7C,WAAW,CAAC,EACV,iBAAiB,EACjB,MAAM,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAC7B,WAAW,GACZ,EAAE;QACD,iBAAiB,EAAE,WAAW,CAAC;QAC/B,MAAM,EAAE,kBAAkB,CAAC;QAC3B,WAAW,EAAE,WAAW,CAAC;KAC1B,GAAG,MAAM,IAAI;IAgDd,oBAAoB,UAAW,OAAO,UAEpC;CACH"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,UAAU,EAAE,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;;IAMzC,iBAAiB,EAAE,WAAW,GAAG,IAAI,CAAQ;IAC7C,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAE7C,WAAW,CAAC,EACV,iBAAiB,EACjB,MAAM,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAC7B,WAAW,EACX,WAAW,GACZ,EAAE;QACD,iBAAiB,EAAE,WAAW,CAAC;QAC/B,MAAM,EAAE,kBAAkB,CAAC;QAC3B,WAAW,EAAE,WAAW,CAAC;QACzB,WAAW,EAAE,iBAAiB,CAAC;KAChC,GAAG,MAAM,IAAI;IAiDd,oBAAoB,UAAW,OAAO,UAEpC;CACH"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-shell",
3
3
  "productName": "Compass Shell plugin",
4
- "version": "3.20.4",
4
+ "version": "3.22.0",
5
5
  "description": "Compass Shell Plugin",
6
6
  "author": {
7
7
  "name": "MongoDB Inc",
@@ -57,32 +57,32 @@
57
57
  "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
58
58
  },
59
59
  "dependencies": {
60
- "@mongodb-js/compass-components": "^1.20.2",
61
- "@mongodb-js/compass-logging": "^1.2.8",
62
- "@mongodb-js/compass-user-data": "^0.1.11",
63
- "@mongodb-js/compass-utils": "^0.5.7",
60
+ "@mongodb-js/compass-components": "^1.21.0",
61
+ "@mongodb-js/compass-logging": "^1.2.9",
62
+ "@mongodb-js/compass-user-data": "^0.1.12",
63
+ "@mongodb-js/compass-utils": "^0.5.8",
64
64
  "@mongosh/node-runtime-worker-thread": "^2.1.1",
65
- "compass-preferences-model": "^2.16.1",
66
- "hadron-app-registry": "^9.1.1",
67
- "mongodb-data-service": "^22.16.2"
65
+ "compass-preferences-model": "^2.17.0",
66
+ "hadron-app-registry": "^9.1.3",
67
+ "mongodb-data-service": "^22.17.1"
68
68
  },
69
69
  "peerDependencies": {
70
- "@mongodb-js/compass-components": "^1.20.2",
71
- "@mongodb-js/compass-logging": "^1.2.8",
72
- "@mongodb-js/compass-user-data": "^0.1.11",
73
- "@mongodb-js/compass-utils": "^0.5.7",
70
+ "@mongodb-js/compass-components": "^1.21.0",
71
+ "@mongodb-js/compass-logging": "^1.2.9",
72
+ "@mongodb-js/compass-user-data": "^0.1.12",
73
+ "@mongodb-js/compass-utils": "^0.5.8",
74
74
  "@mongosh/node-runtime-worker-thread": "^2.1.1",
75
- "compass-preferences-model": "^2.16.1",
76
- "hadron-app-registry": "^9.1.1",
77
- "mongodb-data-service": "^22.16.2",
75
+ "compass-preferences-model": "^2.17.0",
76
+ "hadron-app-registry": "^9.1.3",
77
+ "mongodb-data-service": "^22.17.1",
78
78
  "react": "^17.0.2"
79
79
  },
80
80
  "devDependencies": {
81
- "@mongodb-js/eslint-config-compass": "^1.0.12",
82
- "@mongodb-js/mocha-config-compass": "^1.3.3",
81
+ "@mongodb-js/eslint-config-compass": "^1.0.13",
82
+ "@mongodb-js/mocha-config-compass": "^1.3.4",
83
83
  "@mongodb-js/prettier-config-compass": "^1.0.1",
84
84
  "@mongodb-js/tsconfig-compass": "^1.0.3",
85
- "@mongodb-js/webpack-config-compass": "^1.2.7",
85
+ "@mongodb-js/webpack-config-compass": "^1.3.0",
86
86
  "@mongosh/browser-repl": "^2.1.1",
87
87
  "@mongosh/logging": "^2.1.1",
88
88
  "chai": "^4.2.0",
@@ -98,5 +98,5 @@
98
98
  "redux": "^4.2.1",
99
99
  "sinon": "^9.2.3"
100
100
  },
101
- "gitHead": "c5c89848df7182ae762840d5fb5d8a4cefade189"
101
+ "gitHead": "13985bba4e0cf9b03e1ef16f7fed023941ccd567"
102
102
  }