@mongodb-js/compass-aggregations 9.6.0 → 9.7.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.
@@ -69,7 +69,3 @@ object-assign
69
69
  * This source code is licensed under the MIT license found in the
70
70
  * LICENSE file in the root directory of this source tree.
71
71
  */
72
-
73
- //! moment.js
74
-
75
- //! moment.js locale configuration
@@ -1 +1 @@
1
- {"version":3,"file":"add-stage.d.ts","sourceRoot":"","sources":["../../../../src/components/add-stage/add-stage.tsx"],"names":[],"mappings":";AA4BA,aAAK,aAAa,GAAG;IACnB,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,QAAQ,4BAA6B,aAAa,gBAkC9D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"add-stage.d.ts","sourceRoot":"","sources":["../../../../src/components/add-stage/add-stage.tsx"],"names":[],"mappings":";AA6BA,aAAK,aAAa,GAAG;IACnB,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,QAAQ,4BAA6B,aAAa,gBAkC9D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"focus-mode-stage-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/focus-mode/focus-mode-stage-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA+B1B,eAAO,MAAM,oBAAoB;WAIxB,MAAM;cACH,MAAM,GAAG,IAAI;wBAsBxB,CAAC;;;;;;;;AAeF,wBAAuD"}
1
+ {"version":3,"file":"focus-mode-stage-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/focus-mode/focus-mode-stage-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAiCtC,eAAO,MAAM,oBAAoB;WAIxB,MAAM;cACH,MAAM,GAAG,IAAI;wBAyBxB,CAAC;;;;;;;;AAeF,wBAAuD"}
@@ -1 +1 @@
1
- {"version":3,"file":"focus-mode.d.ts","sourceRoot":"","sources":["../../../../src/components/focus-mode/focus-mode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoG1B,aAAK,cAAc,GAAG;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAwFF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAqB7D,CAAC;;;;;AAUF,wBAAyD"}
1
+ {"version":3,"file":"focus-mode.d.ts","sourceRoot":"","sources":["../../../../src/components/focus-mode/focus-mode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoG1B,aAAK,cAAc,GAAG;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAwFF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAuB7D,CAAC;;;;;AAUF,wBAAyD"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline-confirm-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/pipeline-confirm-modal/pipeline-confirm-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,aAAK,yBAAyB,GAAG;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,iBAAiB,CACxD,yBAAyB,CAgB1B,CAAC;;;;;AAUF,wBAAoE"}
1
+ {"version":3,"file":"pipeline-confirm-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/pipeline-confirm-modal/pipeline-confirm-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,aAAK,yBAAyB,GAAG;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,iBAAiB,CACxD,yBAAyB,CA2B1B,CAAC;;;;;AAUF,wBAAoE"}
@@ -1 +1 @@
1
- {"version":3,"file":"saved-pipeline-confirmation-modals.d.ts","sourceRoot":"","sources":["../../../../src/components/saved-pipelines/saved-pipeline-confirmation-modals.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClE,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAgBA,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACpE,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAeA,CAAC"}
1
+ {"version":3,"file":"saved-pipeline-confirmation-modals.d.ts","sourceRoot":"","sources":["../../../../src/components/saved-pipelines/saved-pipeline-confirmation-modals.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClE,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CA2BA,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACpE,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CA0BA,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { MongoServerError } from 'mongodb';
3
- import type { CompletionWithServerInfo } from '@mongodb-js/compass-editor';
3
+ import type { AceEditor, CompletionWithServerInfo } from '@mongodb-js/compass-editor';
4
4
  import type { PipelineParserError } from '../../modules/pipeline-builder/pipeline-parser/utils';
5
5
  declare type StageEditorProps = {
6
- darkMode?: boolean;
7
6
  index: number;
8
7
  stageOperator: string | null;
9
8
  stageValue: string | null;
@@ -13,21 +12,14 @@ declare type StageEditorProps = {
13
12
  serverError: MongoServerError | null;
14
13
  num_stages: number;
15
14
  editor_view_type: string;
16
- className: string;
15
+ className?: string;
17
16
  onChange: (index: number, value: string) => void;
17
+ onLoad?: (editor: AceEditor) => void;
18
18
  };
19
- export declare const StageEditor: React.ComponentType<StageEditorProps>;
20
- declare const _default: import("react-redux").ConnectedComponent<React.ComponentType<StageEditorProps>, {
21
- className: string;
22
- darkMode?: boolean | undefined;
23
- index: number;
24
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
25
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
26
- } | {
27
- ref?: React.LegacyRef<React.Component<StageEditorProps, any, any>> | undefined;
28
- className: string;
29
- key?: React.Key | null | undefined;
30
- darkMode?: boolean | undefined;
19
+ export declare const StageEditor: ({ stageValue, stageOperator, index, onChange, serverError, syntaxError, className, autocompleteFields, serverVersion, num_stages, editor_view_type, onLoad, }: StageEditorProps) => JSX.Element;
20
+ declare const _default: import("react-redux").ConnectedComponent<({ stageValue, stageOperator, index, onChange, serverError, syntaxError, className, autocompleteFields, serverVersion, num_stages, editor_view_type, onLoad, }: StageEditorProps) => JSX.Element, {
21
+ className?: string | undefined;
22
+ onLoad?: ((editor: import("ace-builds").Ace.Editor) => void) | undefined;
31
23
  index: number;
32
24
  context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
33
25
  store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"stage-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-editor/stage-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAOhD,OAAO,KAAK,EAEV,wBAAwB,EAEzB,MAAM,4BAA4B,CAAC;AAapC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAyChG,aAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,wBAAwB,EAAE,CAAC;IAC/C,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD,CAAC;AAyIF,eAAO,MAAM,WAAW,uCAAoC,CAAC;;;;WAGrB,MAAM;;;;;;;;WAAN,MAAM;;;;AAD9C,wBAiBe"}
1
+ {"version":3,"file":"stage-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-editor/stage-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAOhD,OAAO,KAAK,EACV,SAAS,EACT,wBAAwB,EAEzB,MAAM,4BAA4B,CAAC;AAapC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAyChG,aAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,wBAAwB,EAAE,CAAC;IAC/C,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACxC,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC;CACtC,CAAC;AAqBF,eAAO,MAAM,WAAW,kKAarB,gBAAgB,gBAkGlB,CAAC;;;;WAGsC,MAAM;;;;AAD9C,wBAiBe"}
@@ -1 +1 @@
1
- {"version":3,"file":"output-stage-preview.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-preview/output-stage-preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA8C1B,aAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,6BAA6B,EAAE,OAAO,CAAC;IACvC,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC;AAyBF,eAAO,MAAM,WAAW,0JASrB,gBAAgB,uBAkDlB,CAAC;;;;;;AAiCF,wBAA2D"}
1
+ {"version":3,"file":"output-stage-preview.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-preview/output-stage-preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgD1B,aAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,6BAA6B,EAAE,OAAO,CAAC;IACvC,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC;AAyBF,eAAO,MAAM,WAAW,0JASrB,gBAAgB,uBAkDlB,CAAC;;;;;;AAiCF,wBAA2D"}
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { type AceEditor } from '@mongodb-js/compass-editor';
2
3
  declare type StageToolbarProps = {
3
4
  index: number;
4
5
  isAutoPreviewing?: boolean;
@@ -6,11 +7,15 @@ declare type StageToolbarProps = {
6
7
  hasServerError?: boolean;
7
8
  isCollapsed?: boolean;
8
9
  isDisabled?: boolean;
9
- onFocusModeEnableClick: (index: number) => void;
10
+ onFocusModeClicked: () => void;
11
+ onOpenFocusMode: () => void;
12
+ editorRef: React.RefObject<AceEditor | undefined>;
10
13
  };
11
- export declare function StageToolbar({ index, hasSyntaxError, hasServerError, isCollapsed, isDisabled, onFocusModeEnableClick, }: StageToolbarProps): JSX.Element;
14
+ export declare function StageToolbar({ index, hasSyntaxError, hasServerError, isCollapsed, isDisabled, onOpenFocusMode, editorRef, }: StageToolbarProps): JSX.Element;
12
15
  declare const _default: import("react-redux").ConnectedComponent<typeof StageToolbar, {
13
16
  index: number;
17
+ editorRef: React.RefObject<import("ace-builds").Ace.Editor | undefined>;
18
+ onFocusModeClicked: () => void;
14
19
  context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
15
20
  store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
16
21
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-toolbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqF1B,aAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD,CAAC;AAMF,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,cAAc,EACd,cAAc,EACd,WAAW,EACX,UAAU,EACV,sBAAsB,GACvB,EAAE,iBAAiB,eAwCnB;;WAGuC,MAAM;;;;AAD9C,wBAYgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-toolbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAyE5D,aAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;CACnD,CAAC;AAMF,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,cAAc,EACd,cAAc,EACd,WAAW,EACX,UAAU,EACV,eAAe,EACf,SAAS,GACV,EAAE,iBAAiB,eAyCnB;;;;;;;;AAOD,wBAiBgB"}
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { type AceEditor } from '@mongodb-js/compass-editor';
2
3
  declare type StageOperatorSelectProps = {
3
4
  onChange: (index: number, name: string | null) => void;
4
5
  index: number;
@@ -25,10 +26,12 @@ declare type EnvAwareStageOperatorSelectProps = {
25
26
  };
26
27
  onChange: (index: number, name: string) => void;
27
28
  index: number;
29
+ editorRef: React.RefObject<AceEditor | undefined>;
28
30
  };
29
- declare function EnvAwareStageOperatorSelect({ envInfo: { serverVersion, env, isTimeSeries, isReadonly, sourceName }, stage, onChange, index, }: EnvAwareStageOperatorSelectProps): JSX.Element;
31
+ declare function EnvAwareStageOperatorSelect({ envInfo: { serverVersion, env, isTimeSeries, isReadonly, sourceName }, stage, onChange, index, editorRef, }: EnvAwareStageOperatorSelectProps): JSX.Element;
30
32
  declare const _default: import("react-redux").ConnectedComponent<typeof EnvAwareStageOperatorSelect, {
31
33
  index: number;
34
+ editorRef: React.RefObject<import("ace-builds").Ace.Editor | undefined>;
32
35
  context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
33
36
  store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
34
37
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"stage-operator-select.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-toolbar/stage-operator-select.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAmCpD,aAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;KACrB,EAAE,CAAC;CACL,CAAC;AAGF,eAAO,MAAM,mBAAmB,4DAM7B,wBAAwB,gBAkC1B,CAAC;AAEF,aAAK,gCAAgC,GAAG;IACtC,OAAO,EAAE;QACP,aAAa,EAAE,MAAM,CAAC;QACtB,GAAG,EAAE,MAAM,CAAC;QACZ,YAAY,EAAE,OAAO,CAAC;QACtB,UAAU,EAAE,OAAO,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,KAAK,EAAE;QACL,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AACF,iBAAS,2BAA2B,CAAC,EACnC,OAAO,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,EACrE,KAAK,EACL,QAAQ,EACR,KAAK,GACN,EAAE,gCAAgC,eAkClC;;WAGuC,MAAM;;;;AAD9C,wBAc+B"}
1
+ {"version":3,"file":"stage-operator-select.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-toolbar/stage-operator-select.ts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AAM;;;;;AAD9C,wBAc+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/components/stage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAuH1B,oBAAY,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,EAAE,EACF,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,GACjB,EAAE,UAAU,eA2CZ;;;;;;AAMD,wBAUU"}
1
+ {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/components/stage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AA6IxE,oBAAY,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AA6BF,iBAAS,KAAK,CAAC,EACb,EAAE,EACF,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,GACjB,EAAE,UAAU,eAsFZ;;;;;;AAMD,wBAUU"}
@@ -1,4 +1,8 @@
1
1
  export const DEFAULT_MAX_TIME_MS: 60000;
2
2
  export const DEFAULT_SAMPLE_SIZE: 10;
3
3
  export const DEFAULT_LARGE_LIMIT: 100000;
4
+ export const OUT_STAGE_PREVIEW_TEXT: string;
5
+ export const MERGE_STAGE_PREVIEW_TEXT: string;
6
+ export const PIPELINE_HELP_URI: "https://www.mongodb.com/docs/manual/reference/operator/aggregation-pipeline/";
7
+ export const STAGE_HELP_BASE_URL: "https://www.mongodb.com/docs/manual/reference/operator/aggregation";
4
8
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.js"],"names":[],"mappings":"AAGA,wCAAyC;AAKzC,qCAAsC;AAMtC,yCAA0C"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.js"],"names":[],"mappings":"AAGA,wCAAyC;AAKzC,qCAAsC;AAMtC,yCAA0C;AAE1C,4CAGkD;AAElD,8CAE4B;AAE5B,+GACiF;AAEjF,uGACuE"}
@@ -0,0 +1,3 @@
1
+ export declare const hasSeenFocusModeGuideCue: () => boolean;
2
+ export declare const setHasSeenFocusModeGuideCue: () => void;
3
+ //# sourceMappingURL=local-storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../src/utils/local-storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,QAAO,OAE3C,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAAO,IAE9C,CAAC"}
@@ -9,8 +9,6 @@ export function getStageInfo(namespace: string, stageOperator: string | undefine
9
9
  destination?: string;
10
10
  };
11
11
  export function hasSyntaxError(stage: any): boolean;
12
- export const OUT_STAGE_PREVIEW_TEXT: string;
13
- export const MERGE_STAGE_PREVIEW_TEXT: string;
14
12
  export function filterStageOperators({ serverVersion, env, isTimeSeries, sourceName, preferencesReadOnly, }: Object): any[];
15
13
  export function getStageHelpLink(stageOperator: any): string | null;
16
14
  export function getLastStageOperator(pipeline: import('mongodb').Document[]): string;
@@ -1 +1 @@
1
- {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/utils/stage.js"],"names":[],"mappings":"AAmCA,m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IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CA2BzE;AA+CD,oDAEC;AArOM,6GARI,MAAM,SAoChB;AAkHM,oEAKN;AAuCM,+CAHI,OAAO,SAAS,EAAE,QAAQ,EAAE,GAC1B,MAAM,CAKlB;AAMM,iDAHI,OAAO,SAAS,EAAE,QAAQ,EAAE,GAC1B,OAAO,CAInB;AAOM,gDAJI,MAAM,GAAG,IAAI,GAAG,SAAS,YACzB,MAAM,GAAG,IAAI,GAAG,SAAS,eACzB,OAAO,SAAS,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,WAe/D;AAMM,6CAFI,MAAM,EAAE,sBAIlB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-aggregations",
3
3
  "productName": "Aggregations plugin",
4
- "version": "9.6.0",
4
+ "version": "9.7.0",
5
5
  "apiVersion": "3.0.0",
6
6
  "description": "Compass Aggregation Pipeline Builder",
7
7
  "main": "dist/index.js",
@@ -35,21 +35,21 @@
35
35
  "test-ci": "npm run test-cov",
36
36
  "test-ci-electron": "npm run test-electron",
37
37
  "prettier": "prettier",
38
- "reformat": "npm run prettier -- --write ."
38
+ "reformat": "npm run prettier -- --write . && npm run eslint . --fix"
39
39
  },
40
40
  "license": "SSPL",
41
41
  "peerDependencies": {
42
- "@mongodb-js/compass-components": "^1.5.0",
43
- "@mongodb-js/compass-crud": "^13.5.3",
44
- "@mongodb-js/compass-editor": "^0.4.2",
45
- "@mongodb-js/compass-logging": "^1.1.2",
46
- "@mongodb-js/compass-utils": "^0.2.1",
47
- "@mongodb-js/explain-plan-helper": "^1.0.2",
48
- "@mongodb-js/mongodb-constants": "^0.1.5",
49
- "@mongodb-js/mongodb-redux-common": "^2.0.4",
50
- "bson": "^4.4.1",
51
- "compass-preferences-model": "^2.5.1",
52
- "hadron-document": "^8.1.0",
42
+ "@mongodb-js/compass-components": "^1.6.0",
43
+ "@mongodb-js/compass-crud": "^13.6.0",
44
+ "@mongodb-js/compass-editor": "^0.5.0",
45
+ "@mongodb-js/compass-logging": "^1.1.3",
46
+ "@mongodb-js/compass-utils": "^0.2.2",
47
+ "@mongodb-js/explain-plan-helper": "^1.0.3",
48
+ "@mongodb-js/mongodb-constants": "^0.2.1",
49
+ "@mongodb-js/mongodb-redux-common": "^2.0.5",
50
+ "bson": "^5.0.1",
51
+ "compass-preferences-model": "^2.6.0",
52
+ "hadron-document": "^8.1.1",
53
53
  "react": "^17.0.2"
54
54
  },
55
55
  "devDependencies": {
@@ -60,11 +60,11 @@
60
60
  "@dnd-kit/sortable": "^7.0.2",
61
61
  "@dnd-kit/utilities": "^3.2.1",
62
62
  "@electron/remote": "^2.0.9",
63
- "@mongodb-js/eslint-config-compass": "^1.0.2",
63
+ "@mongodb-js/eslint-config-compass": "^1.0.3",
64
64
  "@mongodb-js/mocha-config-compass": "^1.0.2",
65
65
  "@mongodb-js/prettier-config-compass": "^1.0.0",
66
66
  "@mongodb-js/tsconfig-compass": "^1.0.1",
67
- "@mongodb-js/webpack-config-compass": "^1.0.5",
67
+ "@mongodb-js/webpack-config-compass": "^1.0.6",
68
68
  "@testing-library/react": "^12.1.4",
69
69
  "@testing-library/user-event": "^13.5.0",
70
70
  "@types/lodash": "^4.14.188",
@@ -72,23 +72,24 @@
72
72
  "chai": "^4.3.6",
73
73
  "debug": "^4.2.0",
74
74
  "depcheck": "^1.4.1",
75
- "ejson-shell-parser": "^1.2.0",
75
+ "ejson-shell-parser": "^1.2.1",
76
76
  "electron": "^22.0.2",
77
77
  "enzyme": "^3.11.0",
78
78
  "eslint": "^7.25.0",
79
- "hadron-app-registry": "^9.0.3",
79
+ "hadron-app-registry": "^9.0.4",
80
80
  "lodash": "^4.17.21",
81
81
  "mocha": "^8.4.0",
82
- "mongodb": "^4.13.0",
83
- "mongodb-data-service": "^22.4.1",
82
+ "mongodb": "^5.1.0",
83
+ "mongodb-data-service": "^22.5.0",
84
84
  "mongodb-ns": "^2.4.0",
85
- "mongodb-query-parser": "^2.4.6",
85
+ "mongodb-query-parser": "^2.4.8",
86
86
  "nyc": "^15.1.0",
87
87
  "prettier": "^2.7.1",
88
88
  "prop-types": "^15.7.2",
89
89
  "re-resizable": "^6.9.0",
90
90
  "react": "^17.0.2",
91
91
  "react-dom": "^17.0.2",
92
+ "react-intersection-observer": "^8.34.0",
92
93
  "react-redux": "^8.0.5",
93
94
  "redux": "^4.2.0",
94
95
  "redux-thunk": "^2.3.0",
@@ -98,17 +99,17 @@
98
99
  "xvfb-maybe": "^0.2.1"
99
100
  },
100
101
  "dependencies": {
101
- "@mongodb-js/compass-components": "^1.5.0",
102
- "@mongodb-js/compass-crud": "^13.5.3",
103
- "@mongodb-js/compass-editor": "^0.4.2",
104
- "@mongodb-js/compass-logging": "^1.1.2",
105
- "@mongodb-js/compass-utils": "^0.2.1",
106
- "@mongodb-js/explain-plan-helper": "^1.0.2",
107
- "@mongodb-js/mongodb-constants": "^0.1.5",
108
- "@mongodb-js/mongodb-redux-common": "^2.0.4",
109
- "bson": "^4.4.1",
110
- "compass-preferences-model": "^2.5.1",
111
- "hadron-document": "^8.1.0"
102
+ "@mongodb-js/compass-components": "^1.6.0",
103
+ "@mongodb-js/compass-crud": "^13.6.0",
104
+ "@mongodb-js/compass-editor": "^0.5.0",
105
+ "@mongodb-js/compass-logging": "^1.1.3",
106
+ "@mongodb-js/compass-utils": "^0.2.2",
107
+ "@mongodb-js/explain-plan-helper": "^1.0.3",
108
+ "@mongodb-js/mongodb-constants": "^0.2.1",
109
+ "@mongodb-js/mongodb-redux-common": "^2.0.5",
110
+ "bson": "^5.0.1",
111
+ "compass-preferences-model": "^2.6.0",
112
+ "hadron-document": "^8.1.1"
112
113
  },
113
114
  "homepage": "https://github.com/mongodb-js/compass",
114
115
  "bugs": {
@@ -119,5 +120,5 @@
119
120
  "type": "git",
120
121
  "url": "https://github.com/mongodb-js/compass.git"
121
122
  },
122
- "gitHead": "b625bfb4b1c028513e232069ca2f56b14ffa5422"
123
+ "gitHead": "96ec6b32140254def920e2b4a8dba9be56633f75"
123
124
  }