@mongodb-js/compass-aggregations 9.21.0 → 9.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.
Files changed (205) hide show
  1. package/README.md +0 -18
  2. package/dist/browser.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/src/components/add-stage/index.d.ts +1 -1
  5. package/dist/src/components/add-stage/index.d.ts.map +1 -1
  6. package/dist/src/components/aggregation-side-panel/index.d.ts.map +1 -1
  7. package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/group/group-with-statistics.d.ts.map +1 -1
  8. package/dist/src/components/aggregations/aggregations.d.ts +13 -17
  9. package/dist/src/components/aggregations/aggregations.d.ts.map +1 -1
  10. package/dist/src/components/aggregations/index.d.ts +1 -2
  11. package/dist/src/components/aggregations/index.d.ts.map +1 -1
  12. package/dist/src/components/create-view-modal/create-view-modal.d.ts +31 -43
  13. package/dist/src/components/create-view-modal/create-view-modal.d.ts.map +1 -1
  14. package/dist/src/components/create-view-modal/index.d.ts +1 -2
  15. package/dist/src/components/create-view-modal/index.d.ts.map +1 -1
  16. package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts +5 -3
  17. package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts.map +1 -1
  18. package/dist/src/components/focus-mode/focus-mode.d.ts +1 -1
  19. package/dist/src/components/focus-mode/focus-mode.d.ts.map +1 -1
  20. package/dist/src/components/loading-overlay/index.d.ts +1 -1
  21. package/dist/src/components/loading-overlay/index.d.ts.map +1 -1
  22. package/dist/src/components/modify-source-banner/index.d.ts +1 -1
  23. package/dist/src/components/modify-source-banner/index.d.ts.map +1 -1
  24. package/dist/src/components/modify-source-banner/modify-source-banner.d.ts +9 -7
  25. package/dist/src/components/modify-source-banner/modify-source-banner.d.ts.map +1 -1
  26. package/dist/src/components/pipeline/index.d.ts +1 -1
  27. package/dist/src/components/pipeline/index.d.ts.map +1 -1
  28. package/dist/src/components/pipeline/pipeline.d.ts +24 -12
  29. package/dist/src/components/pipeline/pipeline.d.ts.map +1 -1
  30. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts +4 -3
  31. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts.map +1 -1
  32. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts +4 -2
  33. package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts.map +1 -1
  34. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/index.d.ts +0 -1
  35. package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/index.d.ts.map +1 -1
  36. package/dist/src/components/pipeline-output-options-menu.d.ts +0 -1
  37. package/dist/src/components/pipeline-output-options-menu.d.ts.map +1 -1
  38. package/dist/src/components/pipeline-results-workspace/index.d.ts +2 -4
  39. package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -1
  40. package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts +2 -5
  41. package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts.map +1 -1
  42. package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts +2 -3
  43. package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts.map +1 -1
  44. package/dist/src/components/pipeline-toolbar/index.d.ts +1 -6
  45. package/dist/src/components/pipeline-toolbar/index.d.ts.map +1 -1
  46. package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts +1 -1
  47. package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts +1 -1
  48. package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts.map +1 -1
  49. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts +1 -1
  50. package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts.map +1 -1
  51. package/dist/src/components/pipeline-toolbar/pipeline-toolbar-container.d.ts +1 -0
  52. package/dist/src/components/pipeline-toolbar/pipeline-toolbar-container.d.ts.map +1 -1
  53. package/dist/src/components/saving-pipeline-modal/index.d.ts +1 -1
  54. package/dist/src/components/saving-pipeline-modal/index.d.ts.map +1 -1
  55. package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts +18 -9
  56. package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -1
  57. package/dist/src/components/settings/settings.d.ts +2 -3
  58. package/dist/src/components/settings/settings.d.ts.map +1 -1
  59. package/dist/src/components/stage-editor/index.d.ts +1 -1
  60. package/dist/src/components/stage-editor/index.d.ts.map +1 -1
  61. package/dist/src/components/stage-preview/stage-preview-header.d.ts +3 -3
  62. package/dist/src/components/stage-preview/stage-preview-header.d.ts.map +1 -1
  63. package/dist/src/components/stage-toolbar/option-menu.d.ts +6 -2
  64. package/dist/src/components/stage-toolbar/option-menu.d.ts.map +1 -1
  65. package/dist/src/components/stage-toolbar/stage-operator-select.d.ts +2 -1
  66. package/dist/src/components/stage-toolbar/stage-operator-select.d.ts.map +1 -1
  67. package/dist/src/components/stage.d.ts +1 -1
  68. package/dist/src/components/stage.d.ts.map +1 -1
  69. package/dist/src/constants.d.ts +7 -7
  70. package/dist/src/constants.d.ts.map +1 -1
  71. package/dist/src/index.d.ts +64 -9
  72. package/dist/src/index.d.ts.map +1 -1
  73. package/dist/src/modules/aggregation-workspace-id.d.ts +2 -2
  74. package/dist/src/modules/aggregation-workspace-id.d.ts.map +1 -1
  75. package/dist/src/modules/aggregation.d.ts +15 -12
  76. package/dist/src/modules/aggregation.d.ts.map +1 -1
  77. package/dist/src/modules/auto-preview.d.ts +4 -2
  78. package/dist/src/modules/auto-preview.d.ts.map +1 -1
  79. package/dist/src/modules/clone-pipeline.d.ts +5 -4
  80. package/dist/src/modules/clone-pipeline.d.ts.map +1 -1
  81. package/dist/src/modules/collation-string.d.ts +2 -1
  82. package/dist/src/modules/collation-string.d.ts.map +1 -1
  83. package/dist/src/modules/collections-fields.d.ts +2 -1
  84. package/dist/src/modules/collections-fields.d.ts.map +1 -1
  85. package/dist/src/modules/comments.d.ts +4 -2
  86. package/dist/src/modules/comments.d.ts.map +1 -1
  87. package/dist/src/modules/count-documents.d.ts.map +1 -1
  88. package/dist/src/modules/create-view/index.d.ts +57 -19
  89. package/dist/src/modules/create-view/index.d.ts.map +1 -1
  90. package/dist/src/modules/data-service.d.ts +7 -9
  91. package/dist/src/modules/data-service.d.ts.map +1 -1
  92. package/dist/src/modules/edit-view-name.d.ts +2 -2
  93. package/dist/src/modules/edit-view-name.d.ts.map +1 -1
  94. package/dist/src/modules/env.d.ts +1 -1
  95. package/dist/src/modules/export-to-language.d.ts +2 -1
  96. package/dist/src/modules/export-to-language.d.ts.map +1 -1
  97. package/dist/src/modules/fields.d.ts +13 -11
  98. package/dist/src/modules/fields.d.ts.map +1 -1
  99. package/dist/src/modules/focus-mode.d.ts +9 -7
  100. package/dist/src/modules/focus-mode.d.ts.map +1 -1
  101. package/dist/src/modules/id.d.ts +12 -5
  102. package/dist/src/modules/id.d.ts.map +1 -1
  103. package/dist/src/modules/index.d.ts +17 -46
  104. package/dist/src/modules/index.d.ts.map +1 -1
  105. package/dist/src/modules/input-documents.d.ts +9 -14
  106. package/dist/src/modules/input-documents.d.ts.map +1 -1
  107. package/dist/src/modules/insights.d.ts +7 -0
  108. package/dist/src/modules/insights.d.ts.map +1 -1
  109. package/dist/src/modules/is-modified.d.ts +2 -1
  110. package/dist/src/modules/is-modified.d.ts.map +1 -1
  111. package/dist/src/modules/is-new-pipeline-confirm.d.ts +10 -0
  112. package/dist/src/modules/is-new-pipeline-confirm.d.ts.map +1 -1
  113. package/dist/src/modules/is-time-series.d.ts +1 -1
  114. package/dist/src/modules/is-time-series.d.ts.map +1 -1
  115. package/dist/src/modules/large-limit.d.ts +4 -2
  116. package/dist/src/modules/large-limit.d.ts.map +1 -1
  117. package/dist/src/modules/limit.d.ts +4 -2
  118. package/dist/src/modules/limit.d.ts.map +1 -1
  119. package/dist/src/modules/max-time-ms.d.ts +8 -4
  120. package/dist/src/modules/max-time-ms.d.ts.map +1 -1
  121. package/dist/src/modules/name.d.ts +4 -4
  122. package/dist/src/modules/name.d.ts.map +1 -1
  123. package/dist/src/modules/namespace.d.ts.map +1 -1
  124. package/dist/src/modules/out-results-fn.d.ts +6 -6
  125. package/dist/src/modules/out-results-fn.d.ts.map +1 -1
  126. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts +1 -1
  127. package/dist/src/modules/pipeline-builder/builder-helpers.d.ts.map +1 -1
  128. package/dist/src/modules/pipeline-builder/index.d.ts +1 -5
  129. package/dist/src/modules/pipeline-builder/index.d.ts.map +1 -1
  130. package/dist/src/modules/pipeline-builder/pipeline-ai.d.ts +12 -1
  131. package/dist/src/modules/pipeline-builder/pipeline-ai.d.ts.map +1 -1
  132. package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts +1 -1
  133. package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts.map +1 -1
  134. package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts +4 -3
  135. package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts.map +1 -1
  136. package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts +1 -2
  137. package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts.map +1 -1
  138. package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts +1 -1
  139. package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -1
  140. package/dist/src/modules/pipeline-builder/stage-editor.d.ts +8 -4
  141. package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -1
  142. package/dist/src/modules/pipeline-builder/stage.d.ts +2 -1
  143. package/dist/src/modules/pipeline-builder/stage.d.ts.map +1 -1
  144. package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts +17 -1
  145. package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts.map +1 -1
  146. package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts +7 -3
  147. package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -1
  148. package/dist/src/modules/saved-pipeline.d.ts +26 -20
  149. package/dist/src/modules/saved-pipeline.d.ts.map +1 -1
  150. package/dist/src/modules/saving-pipeline.d.ts +35 -17
  151. package/dist/src/modules/saving-pipeline.d.ts.map +1 -1
  152. package/dist/src/modules/search-indexes.d.ts +11 -0
  153. package/dist/src/modules/search-indexes.d.ts.map +1 -1
  154. package/dist/src/modules/server-version.d.ts +1 -1
  155. package/dist/src/modules/server-version.d.ts.map +1 -1
  156. package/dist/src/modules/settings.d.ts +32 -23
  157. package/dist/src/modules/settings.d.ts.map +1 -1
  158. package/dist/src/modules/side-panel.d.ts +5 -4
  159. package/dist/src/modules/side-panel.d.ts.map +1 -1
  160. package/dist/src/modules/source-name.d.ts +2 -2
  161. package/dist/src/modules/source-name.d.ts.map +1 -1
  162. package/dist/src/modules/update-view.d.ts +19 -7
  163. package/dist/src/modules/update-view.d.ts.map +1 -1
  164. package/dist/src/modules/workspace.d.ts +3 -3
  165. package/dist/src/modules/workspace.d.ts.map +1 -1
  166. package/dist/src/plugin.d.ts +1 -5
  167. package/dist/src/plugin.d.ts.map +1 -1
  168. package/dist/src/stores/create-view.d.ts +23 -3
  169. package/dist/src/stores/create-view.d.ts.map +1 -1
  170. package/dist/src/stores/store.d.ts +62 -95
  171. package/dist/src/stores/store.d.ts.map +1 -1
  172. package/dist/src/utils/cancellable-aggregation.d.ts +1 -1
  173. package/dist/src/utils/cancellable-aggregation.d.ts.map +1 -1
  174. package/dist/src/utils/stage.d.ts +30 -15
  175. package/dist/src/utils/stage.d.ts.map +1 -1
  176. package/package.json +42 -40
  177. package/dist/index.css +0 -43
  178. package/dist/src/components/create-view-plugin.d.ts +0 -14
  179. package/dist/src/components/create-view-plugin.d.ts.map +0 -1
  180. package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts +0 -49
  181. package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +0 -1
  182. package/dist/src/components/duplicate-view-modal/index.d.ts +0 -5
  183. package/dist/src/components/duplicate-view-modal/index.d.ts.map +0 -1
  184. package/dist/src/components/duplicate-view-plugin.d.ts +0 -10
  185. package/dist/src/components/duplicate-view-plugin.d.ts.map +0 -1
  186. package/dist/src/modules/create-view/error.d.ts +0 -7
  187. package/dist/src/modules/create-view/error.d.ts.map +0 -1
  188. package/dist/src/modules/create-view/is-duplicating.d.ts +0 -5
  189. package/dist/src/modules/create-view/is-duplicating.d.ts.map +0 -1
  190. package/dist/src/modules/create-view/is-running.d.ts +0 -5
  191. package/dist/src/modules/create-view/is-running.d.ts.map +0 -1
  192. package/dist/src/modules/create-view/is-visible.d.ts +0 -8
  193. package/dist/src/modules/create-view/is-visible.d.ts.map +0 -1
  194. package/dist/src/modules/create-view/name.d.ts +0 -5
  195. package/dist/src/modules/create-view/name.d.ts.map +0 -1
  196. package/dist/src/modules/create-view/pipeline.d.ts +0 -5
  197. package/dist/src/modules/create-view/pipeline.d.ts.map +0 -1
  198. package/dist/src/modules/create-view/reset.d.ts +0 -3
  199. package/dist/src/modules/create-view/reset.d.ts.map +0 -1
  200. package/dist/src/modules/create-view/source.d.ts +0 -5
  201. package/dist/src/modules/create-view/source.d.ts.map +0 -1
  202. package/dist/src/modules/projections.d.ts +0 -4
  203. package/dist/src/modules/projections.d.ts.map +0 -1
  204. package/dist/src/stores/duplicate-view.d.ts +0 -3
  205. package/dist/src/stores/duplicate-view.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/modules/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAKhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAIpD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9C,oBAAY,WAAW;IACrB,gBAAgB,0CAA0C;CAC3D;AAED,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,sBAAsB,CAAC;AAC7C,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC;AAE9B,eAAO,MAAM,aAAa,EAAE,KAAiB,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CAWtC,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,2BAA2B,IAAI,CAS9D,CAAC;AACF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/modules/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAMrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAMpD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9C,oBAAY,WAAW;IACrB,gBAAgB,0CAA0C;CAC3D;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,sBAAsB,CAAC;AAC7C,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC;AAE9B,eAAO,MAAM,aAAa,EAAE,KAAiB,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CAgB3B,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,2BAA2B,IAAI,CAS9D,CAAC;AACF,eAAe,OAAO,CAAC"}
@@ -1,6 +1,2 @@
1
- export default Plugin;
2
- export const Plugin: (props: Omit<any, "enableExplainPlan" | "enableImportExport" | "enableAggregationBuilderRunPipeline"> & Partial<Pick<any, "enableExplainPlan" | "enableImportExport" | "enableAggregationBuilderRunPipeline">>) => React.ReactElement<{}, string | React.JSXElementConstructor<any>>;
3
- import configureStore from './stores/store';
4
- import React from 'react';
5
- export { configureStore };
1
+ export declare function AggregationsPlugin(): JSX.Element;
6
2
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.jsx"],"names":[],"mappings":";AAwCA,0SAQE;2BA5CyB,gBAAgB;kBAJV,OAAO"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.tsx"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,gBAiBjC"}
@@ -1,4 +1,24 @@
1
- export function setDataProvider(store: Store, error: Error, provider: Object): void;
2
- export default configureStore;
3
- declare function configureStore(options?: {}): any;
1
+ import type { Action } from 'redux';
2
+ import type { ThunkAction } from 'redux-thunk';
3
+ import type { CreateViewAction } from '../modules/create-view';
4
+ import type AppRegistry from 'hadron-app-registry';
5
+ import type { DataService } from 'mongodb-data-service';
6
+ import type { LoggerAndTelemetry } from '@mongodb-js/compass-logging/provider';
7
+ type CreateViewServices = {
8
+ globalAppRegistry: AppRegistry;
9
+ dataService: Pick<DataService, 'createView'>;
10
+ logger: LoggerAndTelemetry;
11
+ };
12
+ export declare function configureStore(services: CreateViewServices): import("redux").Store<import("../modules/create-view").CreateViewState, CreateViewAction> & {
13
+ dispatch: import("redux-thunk").ThunkDispatch<any, CreateViewServices, import("redux").AnyAction>;
14
+ };
15
+ export type CreateViewRootState = ReturnType<ReturnType<typeof configureStore>['getState']>;
16
+ export type CreateViewThunkAction<R, A extends Action = CreateViewAction> = ThunkAction<R, CreateViewRootState, CreateViewServices, A>;
17
+ export declare function activateCreateViewPlugin(_: unknown, { globalAppRegistry, dataService, logger }: CreateViewServices): {
18
+ store: import("redux").Store<import("../modules/create-view").CreateViewState, CreateViewAction> & {
19
+ dispatch: import("redux-thunk").ThunkDispatch<any, CreateViewServices, import("redux").AnyAction>;
20
+ };
21
+ deactivate(this: void): void;
22
+ };
23
+ export {};
4
24
  //# sourceMappingURL=create-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-view.d.ts","sourceRoot":"","sources":["../../../src/stores/create-view.js"],"names":[],"mappings":"AAcO,qDAHI,KAAK,YACL,MAAM,QAIhB;;AAED,mDA8BC"}
1
+ {"version":3,"file":"create-view.d.ts","sourceRoot":"","sources":["../../../src/stores/create-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,WAAW,CAAC;IAC/B,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;IAC7C,MAAM,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,kBAAkB;;EAK1D;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAC1C,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,UAAU,CAAC,CAC9C,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAC/B,CAAC,EACD,CAAC,SAAS,MAAM,GAAG,gBAAgB,IACjC,WAAW,CAAC,CAAC,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC;AAE/D,wBAAgB,wBAAwB,CACtC,CAAC,EAAE,OAAO,EACV,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,kBAAkB;;;;qBAgB3C,IAAI;EAIxB"}
@@ -1,21 +1,14 @@
1
1
  import type { Store } from 'redux';
2
2
  import { AtlasService } from '@mongodb-js/atlas-service/renderer';
3
- import { PipelineBuilder } from '../modules/pipeline-builder/pipeline-builder';
4
- import type { SavedPipeline } from '@mongodb-js/my-queries-storage';
3
+ import type { PipelineBuilderThunkDispatch } from '../modules';
5
4
  import { PipelineStorage } from '@mongodb-js/my-queries-storage';
6
- import type { DataService } from 'mongodb-data-service';
7
5
  import type AppRegistry from 'hadron-app-registry';
8
6
  import type { ENVS } from '@mongodb-js/mongodb-constants';
9
7
  import type { CollectionInfo } from '../modules/collections-fields';
8
+ import type { DataService } from '../modules/data-service';
10
9
  export type ConfigureStoreOptions = {
11
- dataProvider: {
12
- dataProvider: Pick<DataService, 'isCancelError' | 'estimatedCount' | 'aggregate' | 'getConnectionString'> & Partial<Pick<DataService, 'explainAggregate'>>;
13
- error?: Error;
14
- };
15
10
  namespace: string;
16
11
  } & Partial<{
17
- localAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'getStore'>;
18
- globalAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'getStore'>;
19
12
  sourceName: string;
20
13
  serverVersion: string;
21
14
  isTimeSeries: boolean;
@@ -25,7 +18,7 @@ export type ConfigureStoreOptions = {
25
18
  name: string;
26
19
  }[];
27
20
  outResultsFn: (namespace: string) => void;
28
- aggregation: SavedPipeline;
21
+ aggregation: unknown;
29
22
  editViewName: string;
30
23
  sourcePipeline: unknown[];
31
24
  pipeline: unknown[];
@@ -35,93 +28,67 @@ export type ConfigureStoreOptions = {
35
28
  atlasService: AtlasService;
36
29
  isSearchIndexesSupported: boolean;
37
30
  }>;
38
- declare const configureStore: (options: ConfigureStoreOptions) => Store<import("redux").EmptyObject & {
39
- appRegistry: unknown;
40
- comments: boolean;
41
- autoPreview: boolean;
42
- dataService: {
43
- error: Error | null;
44
- dataService: DataService | null;
45
- };
46
- fields: any;
47
- inputDocuments: {
48
- count: any;
49
- documents: any;
50
- error: any;
51
- isLoading: boolean;
52
- isExpanded: boolean;
53
- };
54
- namespace: string;
55
- env: "atlas" | "on-prem" | "adl";
56
- isTimeSeries: boolean;
57
- serverVersion: string;
58
- savedPipeline: {
59
- pipelines: any;
60
- isLoaded: boolean;
61
- };
62
- name: string;
63
- collationString: import("../modules/collation-string").CollationStringState;
64
- id: string;
65
- isModified: boolean;
66
- settings: {
67
- isExpanded: boolean;
68
- isCommentMode: boolean;
69
- isDirty: boolean;
70
- sampleSize: number;
31
+ export type AggregationsPluginServices = {
32
+ dataService: DataService;
33
+ localAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'removeListener' | 'getStore'>;
34
+ globalAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'removeListener' | 'getStore'>;
35
+ };
36
+ export declare function activateAggregationsPlugin(options: ConfigureStoreOptions, { dataService, localAppRegistry, globalAppRegistry, }: AggregationsPluginServices): {
37
+ store: Store<import("redux").CombinedState<{
38
+ appRegistry: unknown;
39
+ comments: boolean;
40
+ autoPreview: import("../modules/auto-preview").AutoPreviewState;
41
+ dataService: import("../modules/data-service").DataServiceState;
42
+ fields: import("../modules/fields").FieldsState;
43
+ inputDocuments: import("../modules/input-documents").InputDocumentsState;
44
+ namespace: string;
45
+ env: "atlas" | "adl" | "on-prem";
46
+ isTimeSeries: boolean;
47
+ serverVersion: string;
48
+ savedPipeline: import("../modules/saved-pipeline").SavedPipelineState;
49
+ name: string;
50
+ collationString: import("../modules/collation-string").CollationStringState;
51
+ id: string;
52
+ isModified: boolean;
53
+ settings: import("../modules/settings").SettingsState;
71
54
  limit: number;
72
- };
73
- limit: any;
74
- largeLimit: any;
75
- maxTimeMS: number | null;
76
- savingPipeline: any;
77
- projections: any;
78
- editViewName: any;
79
- sourceName: any;
80
- outResultsFn: any;
81
- updateViewError: any;
82
- aggregation: import("../modules/aggregation").State;
83
- workspace: import("../modules/workspace").Workspace;
84
- countDocuments: import("../modules/count-documents").State;
85
- aggregationWorkspaceId: string;
86
- isDataLake: boolean;
87
- pipelineBuilder: import("redux").CombinedState<{
88
- aiPipeline: import("../modules/pipeline-builder/pipeline-ai").AIPipelineState;
89
- pipelineMode: import("../modules/pipeline-builder/pipeline-mode").PipelineMode;
90
- stageEditor: import("../modules/pipeline-builder/stage-editor").StageEditorState;
91
- textEditor: import("redux").CombinedState<{
92
- pipeline: import("../modules/pipeline-builder/text-editor-pipeline").TextEditorState;
93
- outputStage: {
94
- isLoading: boolean;
95
- serverError: import("mongodb").MongoServerError | null;
96
- isComplete: boolean;
97
- };
55
+ largeLimit: number;
56
+ maxTimeMS: number | null;
57
+ savingPipeline: import("../modules/saving-pipeline").SavingPipelineState;
58
+ editViewName: string | null;
59
+ sourceName: string | null;
60
+ outResultsFn: import("../modules/out-results-fn").OutResultsFnState;
61
+ updateViewError: import("../modules/update-view").UpdateViewState;
62
+ aggregation: import("../modules/aggregation").State;
63
+ workspace: import("../modules/workspace").Workspace;
64
+ countDocuments: import("../modules/count-documents").State;
65
+ aggregationWorkspaceId: string;
66
+ isDataLake: boolean;
67
+ pipelineBuilder: import("redux").CombinedState<{
68
+ aiPipeline: import("../modules/pipeline-builder/pipeline-ai").AIPipelineState;
69
+ pipelineMode: import("../modules/pipeline-builder/pipeline-mode").PipelineMode;
70
+ stageEditor: import("../modules/pipeline-builder/stage-editor").StageEditorState;
71
+ textEditor: import("redux").CombinedState<{
72
+ pipeline: import("../modules/pipeline-builder/text-editor-pipeline").TextEditorState;
73
+ outputStage: import("../modules/pipeline-builder/text-editor-output-stage").OutputStageState;
74
+ }>;
98
75
  }>;
99
- }>;
100
- focusMode: {
101
- isEnabled: boolean;
102
- stageIndex: number;
103
- openedAt: number | null;
104
- };
105
- sidePanel: {
106
- isPanelOpen: boolean;
107
- };
108
- collectionsFields: {
109
- [x: string]: import("../modules/collections-fields").CollectionData;
110
- };
111
- insights: {
112
- isCollectionScan: boolean;
113
- };
114
- searchIndexes: {
115
- isSearchIndexesSupported: boolean;
116
- indexes: import("mongodb-data-service").SearchIndex[];
117
- status: "INITIAL" | "LOADING" | "READY" | "ERROR";
76
+ focusMode: import("../modules/focus-mode").FocusModeState;
77
+ sidePanel: import("../modules/side-panel").SidePanelState;
78
+ collectionsFields: {
79
+ [x: string]: import("../modules/collections-fields").CollectionData;
80
+ };
81
+ insights: {
82
+ isCollectionScan: boolean;
83
+ };
84
+ searchIndexes: {
85
+ isSearchIndexesSupported: boolean;
86
+ indexes: import("mongodb-data-service").SearchIndex[];
87
+ status: "INITIAL" | "LOADING" | "READY" | "ERROR";
88
+ };
89
+ }>, import("redux").AnyAction> & {
90
+ dispatch: PipelineBuilderThunkDispatch;
118
91
  };
119
- }, import("redux").Action<any>> & {
120
- dispatch: import("redux-thunk").ThunkDispatch<any, {
121
- pipelineBuilder: PipelineBuilder;
122
- pipelineStorage: PipelineStorage;
123
- atlasService: AtlasService;
124
- }, import("redux").AnyAction>;
92
+ deactivate(): void;
125
93
  };
126
- export default configureStore;
127
94
  //# sourceMappingURL=store.d.ts.map
@@ -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;AAKnC,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAKlE,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAE/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAMjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAK1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAMpE,M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,YAAY,EAAE,YAAY,CAAC;IAI3B,wBAAwB,EAAE,OAAO,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,EAAE,IAAI,CACpB,WAAW,EACX,IAAI,GAAG,MAAM,GAAG,gBAAgB,GAAG,UAAU,CAC9C,CAAC;IACF,iBAAiB,EAAE,IAAI,CACrB,WAAW,EACX,IAAI,GAAG,MAAM,GAAG,gBAAgB,GAAG,UAAU,CAC9C,CAAC;CACH,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,qBAAqB,EAC9B,EACE,WAAW,EACX,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+L9B"}
@@ -1,5 +1,5 @@
1
1
  import type { AggregateOptions, Document } from 'mongodb';
2
- import type { DataService } from 'mongodb-data-service';
2
+ import type { DataService } from '../modules/data-service';
3
3
  export declare function aggregatePipeline({ dataService, signal, namespace, pipeline, options, skip, limit, }: {
4
4
  dataService: DataService;
5
5
  signal: AbortSignal;
@@ -1 +1 @@
1
- {"version":3,"file":"cancellable-aggregation.d.ts","sourceRoot":"","sources":["../../../src/utils/cancellable-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AASxD,wBAAsB,iBAAiB,CAAC,EACtC,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,KAAK,GACN,EAAE;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAgBtB"}
1
+ {"version":3,"file":"cancellable-aggregation.d.ts","sourceRoot":"","sources":["../../../src/utils/cancellable-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAQ3D,wBAAsB,iBAAiB,CAAC,EACtC,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,KAAK,GACN,EAAE;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAgBtB"}
@@ -1,18 +1,33 @@
1
- export function isAtlasOnly(operatorEnv: any): any;
2
- export function getStageOperator(stage: unknown | undefined): string | undefined;
3
- export function getDestinationNamespaceFromStage(namespace: string, stage: import('mongodb').Document): string;
4
- export function isOutputStage(stageOperator: string | undefined): boolean;
5
- export function isAtlasOnlyStage(stageOperator: string | undefined): boolean;
6
- export function getStageInfo(namespace: string, stageOperator: string | undefined | null, stageValue: string | undefined | null): {
1
+ import { getFilteredCompletions } from '@mongodb-js/mongodb-constants';
2
+ import type { StoreStage } from '../modules/pipeline-builder/stage-editor';
3
+ import type { ServerEnvironment } from '../modules/env';
4
+ import type { MongoServerError } from 'mongodb';
5
+ export declare function isAtlasOnly(operatorEnv: readonly ServerEnvironment[]): boolean;
6
+ export type FilteredStageOperators = (ReturnType<typeof getFilteredCompletions>[number] & {
7
+ name: string;
8
+ env: ServerEnvironment[];
9
+ description: string;
10
+ })[];
11
+ export declare const filterStageOperators: ({ serverVersion, env, isTimeSeries, sourceName, preferencesReadOnly, }: {
12
+ serverVersion: string;
13
+ env: ServerEnvironment;
14
+ isTimeSeries: boolean;
15
+ sourceName: string | null;
16
+ preferencesReadOnly: boolean;
17
+ }) => FilteredStageOperators;
18
+ export declare function getStageOperator(stage: Record<string, unknown> | undefined | null): string | undefined;
19
+ export declare function getDestinationNamespaceFromStage(namespace: string, stage: Record<string, unknown> | null): string | null;
20
+ export declare function isOutputStage(stageOperator: string | null | undefined): boolean;
21
+ export declare function isAtlasOnlyStage(stageOperator: string | null | undefined): boolean;
22
+ export declare const getStageHelpLink: (stageOperator: string | null | undefined) => string | null;
23
+ export declare function getStageInfo(namespace: string, stageOperator: string | null, stageValue: string | undefined | null): {
7
24
  description?: string;
8
- link?: string;
9
- destination?: string;
25
+ link: string | null;
26
+ destination: string | null;
10
27
  };
11
- export function hasSyntaxError(stage: any): boolean;
12
- export function filterStageOperators(options: Object): any[];
13
- export function getStageHelpLink(stageOperator: any): string | null;
14
- export function getLastStageOperator(pipeline: import('mongodb').Document[]): string;
15
- export function isLastStageOutputStage(pipeline: import('mongodb').Document[]): boolean;
16
- export function isMissingAtlasStageSupport(env: string | null | undefined, operator: string | null | undefined, serverError: import('mongodb').MongoServerError | null | undefined): boolean;
17
- export function findAtlasOperator(operators: string[]): string | undefined;
28
+ export declare const getLastStageOperator: (pipeline: Record<string, unknown>[]) => string;
29
+ export declare const isLastStageOutputStage: (pipeline: Record<string, unknown>[]) => boolean;
30
+ export declare const isMissingAtlasStageSupport: (env: ServerEnvironment, operator: string | null | undefined, serverError: MongoServerError | null | undefined) => boolean;
31
+ export declare const findAtlasOperator: (operators: string[]) => string | undefined;
32
+ export declare function hasSyntaxError(stage: StoreStage): boolean;
18
33
  //# sourceMappingURL=stage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/utils/stage.js"],"names":[],"mappings":"AAeA,mDAEC;AAuED,wCAHW,OAAO,GAAG,SAAS,GACjB,MAAM,GAAG,SAAS,CAI9B;AAcD,4DAJW,MAAM,SACN,OAAO,SAAS,EAAE,QAAQ,GACxB,MAAM,CAoBlB;AA0DD,6CAHW,MAAM,GAAG,SAAS,GAChB,OAAO,CAInB;AAOD,gDAHW,MAAM,GAAG,SAAS,GAChB,OAAO,CAInB;AAmBD,wCALW,MAAM,iBACN,MAAM,GAAG,SAAS,GAAG,IAAI,cACzB,MAAM,GAAG,SAAS,GAAG,IAAI,GACvB;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CA2BzE;AA+CD,oDAEC;AApPM,8CARI,MAAM,SAkDhB;AAmHM,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"}
1
+ {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/utils/stage.ts"],"names":[],"mappings":"AACA,OAAO,EASL,sBAAsB,EACvB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAY,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE1D,wBAA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AAM,oBAAoB,aAAc,OAAO,MAAM,EAAE,OAAO,CAAC,EAAE,WAGvE,CAAC;AAMF,eAAO,MAAM,sBAAsB,aAAc,OAAO,MAAM,EAAE,OAAO,CAAC,EAAE,YAEzE,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAChC,iBAAiB,YACZ,MAAM,GAAG,IAAI,GAAG,SAAS,eACtB,gBAAgB,GAAG,IAAI,GAAG,SAAS,YAcjD,CAAC;AAMF,eAAO,MAAM,iBAAiB,cAAe,MAAM,EAAE,uBAEpD,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,WAE/C"}
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.21.0",
4
+ "version": "9.22.0",
5
5
  "apiVersion": "3.0.0",
6
6
  "description": "Compass Aggregation Pipeline Builder",
7
7
  "main": "dist/index.js",
@@ -34,25 +34,27 @@
34
34
  "test-ci": "npm run test-cov",
35
35
  "test-ci-electron": "npm run test-electron",
36
36
  "prettier": "prettier",
37
- "reformat": "npm run prettier -- --write . && npm run eslint . --fix"
37
+ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
38
38
  },
39
39
  "license": "SSPL",
40
40
  "peerDependencies": {
41
- "@mongodb-js/atlas-service": "^0.10.1",
42
- "@mongodb-js/compass-components": "^1.19.0",
43
- "@mongodb-js/compass-crud": "^13.20.0",
44
- "@mongodb-js/compass-editor": "^0.18.0",
45
- "@mongodb-js/compass-generative-ai": "^0.5.0",
46
- "@mongodb-js/compass-logging": "^1.2.6",
47
- "@mongodb-js/compass-utils": "^0.5.5",
48
- "@mongodb-js/explain-plan-helper": "^1.1.4",
41
+ "@mongodb-js/atlas-service": "^0.11.0",
42
+ "@mongodb-js/compass-components": "^1.20.0",
43
+ "@mongodb-js/compass-crud": "^13.21.0",
44
+ "@mongodb-js/compass-editor": "^0.19.0",
45
+ "@mongodb-js/compass-generative-ai": "^0.6.0",
46
+ "@mongodb-js/compass-logging": "^1.2.7",
47
+ "@mongodb-js/compass-utils": "^0.5.6",
48
+ "@mongodb-js/explain-plan-helper": "^1.1.5",
49
49
  "@mongodb-js/mongodb-constants": "^0.8.7",
50
- "@mongodb-js/mongodb-redux-common": "^2.0.15",
51
- "@mongodb-js/my-queries-storage": "^0.2.1",
52
- "bson": "^6.0.0",
53
- "compass-preferences-model": "^2.15.6",
54
- "hadron-document": "^8.4.3",
55
- "hadron-type-checker": "^7.1.0",
50
+ "@mongodb-js/mongodb-redux-common": "^2.0.16",
51
+ "@mongodb-js/my-queries-storage": "^0.3.0",
52
+ "bson": "^6.2.0",
53
+ "compass-preferences-model": "^2.16.0",
54
+ "hadron-app-registry": "^9.1.0",
55
+ "hadron-document": "^8.4.4",
56
+ "hadron-type-checker": "^7.1.1",
57
+ "mongodb-data-service": "^22.16.0",
56
58
  "react": "^17.0.2"
57
59
  },
58
60
  "devDependencies": {
@@ -62,28 +64,26 @@
62
64
  "@dnd-kit/core": "^6.0.7",
63
65
  "@dnd-kit/sortable": "^7.0.2",
64
66
  "@dnd-kit/utilities": "^3.2.1",
65
- "@mongodb-js/eslint-config-compass": "^1.0.11",
66
- "@mongodb-js/mocha-config-compass": "^1.3.2",
67
+ "@mongodb-js/compass-collection": "^4.20.0",
68
+ "@mongodb-js/eslint-config-compass": "^1.0.12",
69
+ "@mongodb-js/mocha-config-compass": "^1.3.3",
67
70
  "@mongodb-js/prettier-config-compass": "^1.0.1",
68
71
  "@mongodb-js/tsconfig-compass": "^1.0.3",
69
- "@mongodb-js/webpack-config-compass": "^1.2.5",
72
+ "@mongodb-js/webpack-config-compass": "^1.2.6",
70
73
  "@testing-library/react": "^12.1.4",
71
74
  "@testing-library/user-event": "^13.5.0",
72
75
  "@types/lodash": "^4.14.188",
73
76
  "@types/semver": "^7.3.9",
74
77
  "chai": "^4.3.6",
75
- "debug": "^4.2.0",
76
78
  "depcheck": "^1.4.1",
77
- "ejson-shell-parser": "^1.2.4",
79
+ "ejson-shell-parser": "^2.0.0",
78
80
  "enzyme": "^3.11.0",
79
81
  "eslint": "^7.25.0",
80
- "hadron-app-registry": "^9.0.14",
81
82
  "lodash": "^4.17.21",
82
83
  "mocha": "^10.2.0",
83
- "mongodb": "^6.0.0",
84
- "mongodb-data-service": "^22.15.1",
84
+ "mongodb": "^6.3.0",
85
85
  "mongodb-ns": "^2.4.0",
86
- "mongodb-query-parser": "^3.1.3",
86
+ "mongodb-query-parser": "^4.0.0",
87
87
  "mongodb-schema": "^12.0.0",
88
88
  "nyc": "^15.1.0",
89
89
  "prettier": "^2.7.1",
@@ -99,21 +99,23 @@
99
99
  "xvfb-maybe": "^0.2.1"
100
100
  },
101
101
  "dependencies": {
102
- "@mongodb-js/atlas-service": "^0.10.1",
103
- "@mongodb-js/compass-components": "^1.19.0",
104
- "@mongodb-js/compass-crud": "^13.20.0",
105
- "@mongodb-js/compass-editor": "^0.18.0",
106
- "@mongodb-js/compass-generative-ai": "^0.5.0",
107
- "@mongodb-js/compass-logging": "^1.2.6",
108
- "@mongodb-js/compass-utils": "^0.5.5",
109
- "@mongodb-js/explain-plan-helper": "^1.1.4",
102
+ "@mongodb-js/atlas-service": "^0.11.0",
103
+ "@mongodb-js/compass-components": "^1.20.0",
104
+ "@mongodb-js/compass-crud": "^13.21.0",
105
+ "@mongodb-js/compass-editor": "^0.19.0",
106
+ "@mongodb-js/compass-generative-ai": "^0.6.0",
107
+ "@mongodb-js/compass-logging": "^1.2.7",
108
+ "@mongodb-js/compass-utils": "^0.5.6",
109
+ "@mongodb-js/explain-plan-helper": "^1.1.5",
110
110
  "@mongodb-js/mongodb-constants": "^0.8.7",
111
- "@mongodb-js/mongodb-redux-common": "^2.0.15",
112
- "@mongodb-js/my-queries-storage": "^0.2.1",
113
- "bson": "^6.0.0",
114
- "compass-preferences-model": "^2.15.6",
115
- "hadron-document": "^8.4.3",
116
- "hadron-type-checker": "^7.1.0"
111
+ "@mongodb-js/mongodb-redux-common": "^2.0.16",
112
+ "@mongodb-js/my-queries-storage": "^0.3.0",
113
+ "bson": "^6.2.0",
114
+ "compass-preferences-model": "^2.16.0",
115
+ "hadron-app-registry": "^9.1.0",
116
+ "hadron-document": "^8.4.4",
117
+ "hadron-type-checker": "^7.1.1",
118
+ "mongodb-data-service": "^22.16.0"
117
119
  },
118
120
  "homepage": "https://github.com/mongodb-js/compass",
119
121
  "bugs": {
@@ -124,5 +126,5 @@
124
126
  "type": "git",
125
127
  "url": "https://github.com/mongodb-js/compass.git"
126
128
  },
127
- "gitHead": "c18fdc5ffd935fcd931935b63193df1d90cfd219"
129
+ "gitHead": "2aaff7aaa6a39f883cd621f627cf29f8fa187ba0"
128
130
  }
package/dist/index.css DELETED
@@ -1,43 +0,0 @@
1
- .pipeline-module-pipeline__zEbsA {
2
- display: flex;
3
- flex-grow: 1;
4
- flex-direction: column;
5
- width: 100%;
6
- height: 100%;
7
- min-height: 0;
8
- position: relative;
9
- }
10
- .pipeline-module-pipeline-collation-toolbar-container__\+1WeG {
11
- padding: 6px 10px 6px 15px;
12
- border-bottom: 1px solid rgba(0, 30, 43, 0.2);
13
- box-shadow: 1px 1px 3px rgba(0, 30, 43, 0.4);
14
- }
15
- .pipeline-module-pipeline-error-banner-container__ipoef {
16
- margin-left: 20px;
17
- margin-right: 36px;
18
- }
19
- .pipeline-module-pipeline-fullscreen__Sy1Jk {
20
- position: absolute;
21
- top: 0;
22
- right: 0;
23
- left: 0;
24
- bottom: 0;
25
- }
26
-
27
- .modify-source-banner-module-modify-source-banner__Klti\+ {
28
- text-align: center;
29
- margin: 5px auto;
30
- margin-top: 20px;
31
- z-index: 500;
32
- }
33
-
34
- .aggregations-module-aggregations__mpPiK {
35
- display: flex;
36
- align-items: flex-start;
37
- background-color: #f9fbfa;
38
- position: relative;
39
- width: 100%;
40
- z-index: 0;
41
- height: 100%;
42
- }
43
-
@@ -1,14 +0,0 @@
1
- export default CreateViewPlugin;
2
- declare class CreateViewPlugin extends React.Component<any, any, any> {
3
- static displayName: string;
4
- static propTypes: {
5
- store: PropTypes.Validator<object>;
6
- };
7
- constructor(props: any);
8
- constructor(props: any, context: any);
9
- render(): React.Component;
10
- }
11
- import React from 'react';
12
- import { Component } from 'react';
13
- import PropTypes from 'prop-types';
14
- //# sourceMappingURL=create-view-plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-view-plugin.d.ts","sourceRoot":"","sources":["../../../src/components/create-view-plugin.jsx"],"names":[],"mappings":";AAKA;IACE,2BAAwC;IACxC;;MAEE;IAiBgxlB,wBAA8C;IAAA,sCAAyJ;IAVz9lB,UAFa,eAAe,CAQ3B;CACF;kBAvBgC,OAAO;0BAAP,OAAO;sBAClB,YAAY"}
@@ -1,49 +0,0 @@
1
- export default MappedDuplicateViewModal;
2
- declare const MappedDuplicateViewModal: import("react-redux").ConnectedComponent<typeof DuplicateViewModal, {
3
- source?: string | undefined;
4
- name?: string | null | undefined;
5
- error?: object | null | undefined;
6
- pipeline?: any[] | undefined;
7
- isVisible?: boolean | undefined;
8
- isRunning?: boolean | undefined;
9
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
10
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
11
- } | {
12
- source?: string | undefined;
13
- name?: string | null | undefined;
14
- error?: object | null | undefined;
15
- pipeline?: any[] | undefined;
16
- isVisible?: boolean | undefined;
17
- isRunning?: boolean | undefined;
18
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
19
- }>;
20
- export class DuplicateViewModal extends React.PureComponent<any, any, any> {
21
- static displayName: string;
22
- static propTypes: {
23
- createView: PropTypes.Validator<(...args: any[]) => any>;
24
- isVisible: PropTypes.Validator<boolean>;
25
- toggleIsVisible: PropTypes.Validator<(...args: any[]) => any>;
26
- name: PropTypes.Requireable<string>;
27
- changeViewName: PropTypes.Validator<(...args: any[]) => any>;
28
- source: PropTypes.Validator<string>;
29
- pipeline: PropTypes.Validator<any[]>;
30
- isRunning: PropTypes.Validator<boolean>;
31
- error: PropTypes.Requireable<object>;
32
- };
33
- static defaultProps: {
34
- name: string;
35
- source: string;
36
- pipeline: never[];
37
- isRunning: boolean;
38
- isVisible: boolean;
39
- };
40
- constructor(props: any);
41
- constructor(props: any, context: any);
42
- componentDidUpdate(prevProps: any): void;
43
- onNameChange: (evt: any) => void;
44
- onCancel: () => void;
45
- render(): Component;
46
- }
47
- import React from 'react';
48
- import PropTypes from 'prop-types';
49
- //# sourceMappingURL=duplicate-view-modal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"duplicate-view-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/duplicate-view-modal/duplicate-view-modal.jsx"],"names":[],"mappings":";AA6HA;;;;;;;;;;;;;;;;;GAIuB;AApGvB;IACE,2BAAmD;IAEnD;;;;;;;;;;MAaE;IAEF;;;;;;MAME;IAgFqtgB,wBAA8C;IAAA,sCAAyJ;IA9E95gB,yCAIC;IAED,iCAEE;IAEF,qBAEE;IAOF,oBA4BC;CACF;kBAvGoC,OAAO;sBACtB,YAAY"}
@@ -1,5 +0,0 @@
1
- export default MappedDuplicateViewModal;
2
- export { DuplicateViewModal };
3
- import MappedDuplicateViewModal from './duplicate-view-modal';
4
- import { DuplicateViewModal } from './duplicate-view-modal';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/duplicate-view-modal/index.js"],"names":[],"mappings":";;qCAEO,wBAAwB;mCAAxB,wBAAwB"}
@@ -1,10 +0,0 @@
1
- export default DuplicateViewPlugin;
2
- declare class DuplicateViewPlugin extends React.Component<any, any, any> {
3
- static displayName: string;
4
- constructor(props: any);
5
- constructor(props: any, context: any);
6
- render(): React.Component;
7
- }
8
- import React from 'react';
9
- import { Component } from 'react';
10
- //# sourceMappingURL=duplicate-view-plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"duplicate-view-plugin.d.ts","sourceRoot":"","sources":["../../../src/components/duplicate-view-plugin.jsx"],"names":[],"mappings":";AAKA;IACE,2BAA2C;IAiB0xlB,wBAA8C;IAAA,sCAAyJ;IAV5gmB,UAFa,eAAe,CAQ3B;CACF;kBApBgC,OAAO;0BAAP,OAAO"}
@@ -1,7 +0,0 @@
1
- export default function reducer(state: Error | undefined, action: Object): Error;
2
- export const HANDLE_ERROR: string;
3
- export const CLEAR_ERROR: string;
4
- export const INITIAL_STATE: null;
5
- export function handleError(error: Error): Object;
6
- export function clearError(): Object;
7
- //# sourceMappingURL=error.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-view/error.js"],"names":[],"mappings":"AA4BA,kEAJW,MAAM,GAEJ,KAAK,CASjB;AA3BD,kCAAqD;AAKrD,iCAAmD;AAKnD,iCAAkC;AA0B3B,mCAJI,KAAK,GAEH,MAAM,CAKjB;AAOK,8BAFM,MAAM,CAIjB"}