@mongodb-js/compass-aggregations 0.0.0-next-b72d7d0f94c6cd6b83966a08494549408ed56560 → 0.0.0-next-014cd3f52319f9c3e62d458f4c10e0af7ae98052

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.
Files changed (127) hide show
  1. package/.eslintrc.js +3 -3
  2. package/.prettierignore +3 -0
  3. package/.prettierrc.json +1 -0
  4. package/README.md +26 -19
  5. package/dist/browser.js +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/src/components/add-stage/add-stage.d.ts +1 -1
  8. package/dist/src/components/add-stage/add-stage.d.ts.map +1 -1
  9. package/dist/src/components/aggregations/aggregations.d.ts.map +1 -1
  10. package/dist/src/components/create-view-modal/create-view-modal.d.ts.map +1 -1
  11. package/dist/src/components/create-view-plugin.d.ts.map +1 -1
  12. package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +1 -1
  13. package/dist/src/components/focus-mode/focus-mode-modal-header.d.ts +16 -0
  14. package/dist/src/components/focus-mode/focus-mode-modal-header.d.ts.map +1 -0
  15. package/dist/src/components/focus-mode/focus-mode-stage-editor.d.ts +2 -2
  16. package/dist/src/components/focus-mode/focus-mode-stage-editor.d.ts.map +1 -1
  17. package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts +4 -1
  18. package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts.map +1 -1
  19. package/dist/src/components/focus-mode/focus-mode.d.ts +1 -0
  20. package/dist/src/components/focus-mode/focus-mode.d.ts.map +1 -1
  21. package/dist/src/components/pipeline-builder-input-documents.d.ts +1 -1
  22. package/dist/src/components/pipeline-builder-input-documents.d.ts.map +1 -1
  23. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts.map +1 -1
  24. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts.map +1 -1
  25. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts.map +1 -1
  26. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts.map +1 -1
  27. package/dist/src/components/pipeline-confirm-modal/pipeline-confirm-modal.d.ts.map +1 -1
  28. package/dist/src/components/pipeline-explain/explain-query-performance.d.ts.map +1 -1
  29. package/dist/src/components/pipeline-explain/explain-results.d.ts.map +1 -1
  30. package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -1
  31. package/dist/src/components/pipeline-results-workspace/pipeline-empty-results.d.ts.map +1 -1
  32. package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts.map +1 -1
  33. package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts.map +1 -1
  34. package/dist/src/components/pipeline-results-workspace/pipeline-results-view-controls.d.ts.map +1 -1
  35. package/dist/src/components/pipeline-toolbar/index.d.ts.map +1 -1
  36. package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts.map +1 -1
  37. package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts.map +1 -1
  38. package/dist/src/components/resize-handle.d.ts.map +1 -1
  39. package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts.map +1 -1
  40. package/dist/src/components/saved-pipelines/saved-pipelines.d.ts.map +1 -1
  41. package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -1
  42. package/dist/src/components/settings/settings.d.ts.map +1 -1
  43. package/dist/src/components/stage-editor/stage-editor.d.ts +27 -20
  44. package/dist/src/components/stage-editor/stage-editor.d.ts.map +1 -1
  45. package/dist/src/components/{atlas-stage-preview.d.ts → stage-preview/atlas-stage-preview.d.ts} +0 -0
  46. package/dist/src/components/stage-preview/atlas-stage-preview.d.ts.map +1 -0
  47. package/dist/src/components/{stage-preview.d.ts → stage-preview/index.d.ts} +5 -12
  48. package/dist/src/components/stage-preview/index.d.ts.map +1 -0
  49. package/dist/src/components/stage-preview/output-stage-preview.d.ts +19 -0
  50. package/dist/src/components/stage-preview/output-stage-preview.d.ts.map +1 -0
  51. package/dist/src/components/stage-preview/stage-preview-header.d.ts +17 -0
  52. package/dist/src/components/stage-preview/stage-preview-header.d.ts.map +1 -0
  53. package/dist/src/components/{stage-editor-toolbar/stage-editor-toolbar.d.ts → stage-toolbar/index.d.ts} +6 -5
  54. package/dist/src/components/stage-toolbar/index.d.ts.map +1 -0
  55. package/dist/src/components/stage-toolbar/option-menu.d.ts +17 -0
  56. package/dist/src/components/stage-toolbar/option-menu.d.ts.map +1 -0
  57. package/dist/src/components/stage-toolbar/stage-collapser.d.ts +12 -0
  58. package/dist/src/components/stage-toolbar/stage-collapser.d.ts.map +1 -0
  59. package/dist/src/components/{stage-editor-toolbar → stage-toolbar}/stage-operator-select.d.ts +3 -2
  60. package/dist/src/components/stage-toolbar/stage-operator-select.d.ts.map +1 -0
  61. package/dist/src/components/stage-toolbar/toggle-stage.d.ts +12 -0
  62. package/dist/src/components/stage-toolbar/toggle-stage.d.ts.map +1 -0
  63. package/dist/src/components/stage.d.ts +1 -1
  64. package/dist/src/components/stage.d.ts.map +1 -1
  65. package/dist/src/constants.d.ts +4 -0
  66. package/dist/src/constants.d.ts.map +1 -1
  67. package/dist/src/index.d.ts.map +1 -1
  68. package/dist/src/modules/aggregation.d.ts.map +1 -1
  69. package/dist/src/modules/auto-preview.d.ts +2 -2
  70. package/dist/src/modules/auto-preview.d.ts.map +1 -1
  71. package/dist/src/modules/collation-string.d.ts.map +1 -1
  72. package/dist/src/modules/count-documents.d.ts.map +1 -1
  73. package/dist/src/modules/create-view/index.d.ts.map +1 -1
  74. package/dist/src/modules/create-view/is-duplicating.d.ts.map +1 -1
  75. package/dist/src/modules/create-view/is-running.d.ts.map +1 -1
  76. package/dist/src/modules/data-service.d.ts +2 -2
  77. package/dist/src/modules/data-service.d.ts.map +1 -1
  78. package/dist/src/modules/explain.d.ts.map +1 -1
  79. package/dist/src/modules/export-to-language.d.ts.map +1 -1
  80. package/dist/src/modules/focus-mode.d.ts +12 -4
  81. package/dist/src/modules/focus-mode.d.ts.map +1 -1
  82. package/dist/src/modules/index.d.ts +6 -3
  83. package/dist/src/modules/index.d.ts.map +1 -1
  84. package/dist/src/modules/input-documents.d.ts.map +1 -1
  85. package/dist/src/modules/is-new-pipeline-confirm.d.ts.map +1 -1
  86. package/dist/src/modules/large-limit.d.ts.map +1 -1
  87. package/dist/src/modules/max-time-ms.d.ts.map +1 -1
  88. package/dist/src/modules/out-results-fn.d.ts +1 -0
  89. package/dist/src/modules/out-results-fn.d.ts.map +1 -1
  90. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts +2 -3
  91. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts.map +1 -1
  92. package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts.map +1 -1
  93. package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts.map +1 -1
  94. package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts.map +1 -1
  95. package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -1
  96. package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -1
  97. package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts.map +1 -1
  98. package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -1
  99. package/dist/src/modules/saved-pipeline.d.ts.map +1 -1
  100. package/dist/src/modules/saving-pipeline.d.ts.map +1 -1
  101. package/dist/src/modules/settings.d.ts.map +1 -1
  102. package/dist/src/modules/update-view.d.ts.map +1 -1
  103. package/dist/src/modules/workspace.d.ts.map +1 -1
  104. package/dist/src/stores/duplicate-view.d.ts.map +1 -1
  105. package/dist/src/stores/store.d.ts.map +1 -1
  106. package/dist/src/utils/cancellable-aggregation.d.ts +1 -1
  107. package/dist/src/utils/cancellable-aggregation.d.ts.map +1 -1
  108. package/dist/src/utils/pipeline-storage.d.ts.map +1 -1
  109. package/dist/src/utils/stage.d.ts +3 -4
  110. package/dist/src/utils/stage.d.ts.map +1 -1
  111. package/package.json +35 -33
  112. package/dist/src/components/atlas-stage-preview.d.ts.map +0 -1
  113. package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts +0 -22
  114. package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts.map +0 -1
  115. package/dist/src/components/stage-editor-toolbar/index.d.ts +0 -3
  116. package/dist/src/components/stage-editor-toolbar/index.d.ts.map +0 -1
  117. package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts +0 -23
  118. package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts.map +0 -1
  119. package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts.map +0 -1
  120. package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts.map +0 -1
  121. package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts +0 -23
  122. package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts.map +0 -1
  123. package/dist/src/components/stage-preview-toolbar/index.d.ts +0 -3
  124. package/dist/src/components/stage-preview-toolbar/index.d.ts.map +0 -1
  125. package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts +0 -22
  126. package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts.map +0 -1
  127. package/dist/src/components/stage-preview.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-editor-toolbar/index.js"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- export class StageCollapser extends React.PureComponent<any, any, any> {
2
- static propTypes: {
3
- index: PropTypes.Validator<number>;
4
- isExpanded: PropTypes.Validator<boolean>;
5
- onChange: PropTypes.Validator<(...args: any[]) => any>;
6
- };
7
- constructor(props: any);
8
- constructor(props: any, context: any);
9
- onStageCollapseToggled: () => void;
10
- render(): JSX.Element;
11
- }
12
- declare const _default: import("react-redux").ConnectedComponent<typeof StageCollapser, {
13
- index: number;
14
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
15
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
16
- } | {
17
- index: number;
18
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
19
- }>;
20
- export default _default;
21
- import React from "react";
22
- import PropTypes from "prop-types";
23
- //# sourceMappingURL=stage-collapser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stage-collapser.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-editor-toolbar/stage-collapser.jsx"],"names":[],"mappings":"AAOA;IACE;;;;MAIE;IA6BivkB,wBAA8C;IAAA,sCAAyJ;IA3B17kB,mCAEE;IAEF,sBAWC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stage-editor-toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-editor-toolbar/stage-editor-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4F1B,aAAK,uBAAuB,GAAG;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,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;CACvB,CAAC;AAEF,iBAAS,kBAAkB,CAAC,EAC1B,aAAa,EACb,KAAK,EACL,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,WAAW,GACZ,EAAE,uBAAuB,eA0BzB;;WAE4D,MAAM;;;;AAAnE,wBASuB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stage-operator-select.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-editor-toolbar/stage-operator-select.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAsDpD,aAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAC,IAAI,KAAK,IAAI,CAAC;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAA;KACtB,EAAE,CAAA;CACJ,CAAC;AAGF,eAAO,MAAM,mBAAmB,+CAK7B,wBAAwB,gBAqD1B,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,CAAA;KACnB,CAAC;IACF,KAAK,EAAE;QACL,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,QAAQ,EAAE,OAAO,CAAA;KAClB,CAAC;IACF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,KAAK,EAAE,MAAM,CAAA;CACd,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,EACN,EAAE,gCAAgC,eA0BlC;;WAGuC,MAAM;;;;AAD9C,wBAQ+B"}
@@ -1,23 +0,0 @@
1
- export class ToggleStage extends React.PureComponent<any, any, any> {
2
- static propTypes: {
3
- index: PropTypes.Validator<number>;
4
- isEnabled: PropTypes.Validator<boolean>;
5
- onChange: PropTypes.Validator<(...args: any[]) => any>;
6
- };
7
- constructor(props: any);
8
- constructor(props: any, context: any);
9
- onStageToggled: (newVal: any) => void;
10
- render(): Component;
11
- }
12
- declare const _default: import("react-redux").ConnectedComponent<typeof ToggleStage, {
13
- index: number;
14
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
15
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
16
- } | {
17
- index: number;
18
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
19
- }>;
20
- export default _default;
21
- import React from "react";
22
- import PropTypes from "prop-types";
23
- //# sourceMappingURL=toggle-stage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle-stage.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-editor-toolbar/toggle-stage.jsx"],"names":[],"mappings":"AAaA;IACE;;;;MAIE;IAyC2+jB,wBAA8C;IAAA,sCAAyJ;IApCprkB,sCAEE;IAOF,oBAeC;CACF"}
@@ -1,3 +0,0 @@
1
- export default StagePreviewToolbar;
2
- import StagePreviewToolbar from "./stage-preview-toolbar";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-preview-toolbar/index.js"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- declare type StagePreviewToolbarProps = {
3
- index: number;
4
- stageOperator?: string | null;
5
- hasSyntaxError?: boolean;
6
- hasServerError?: boolean;
7
- isEnabled?: boolean;
8
- previewSize?: number;
9
- description?: string;
10
- link?: string;
11
- destination?: string;
12
- isCollapsed?: boolean;
13
- onFocusMode: (stageIndex: number) => void;
14
- };
15
- declare function StagePreviewToolbar({ stageOperator, hasSyntaxError, hasServerError, isEnabled, previewSize, description, link, destination, isCollapsed, onFocusMode, index: stageIndex }: StagePreviewToolbarProps): JSX.Element;
16
- declare const _default: import("react-redux").ConnectedComponent<typeof StagePreviewToolbar, {
17
- index: number;
18
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
19
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
20
- }>;
21
- export default _default;
22
- //# sourceMappingURL=stage-preview-toolbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stage-preview-toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/stage-preview-toolbar/stage-preview-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA2G1B,aAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,iBAAS,mBAAmB,CAAC,EAC3B,aAAa,EACb,cAAc,EACd,cAAc,EACd,SAAS,EACT,WAAW,EACX,WAAW,EACX,IAAI,EACJ,WAAW,EACX,WAAW,EACX,WAAW,EACX,KAAK,EAAE,UAAU,EAClB,EAAE,wBAAwB,eAsC1B;;WAE4D,MAAM;;;;AAAnE,wBAmBwB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stage-preview.d.ts","sourceRoot":"","sources":["../../../src/components/stage-preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,IAAI,YAAY,EAAG,MAAM,SAAS,CAAC;AAkOzD,aAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,8BAA8B,EAAE,OAAO,CAAA;CACxC,CAAC;AAqGF,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,eAQpD;;WAGuC,MAAM;;;;AAD9C,wBA4BgB"}