@mongodb-js/compass-indexes 5.7.0 → 5.8.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 (71) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/src/components/create-index-fields.d.ts +1 -1
  4. package/dist/src/components/create-index-fields.d.ts.map +1 -1
  5. package/dist/src/components/create-index-form/checkbox-input.d.ts +1 -1
  6. package/dist/src/components/create-index-form/checkbox-input.d.ts.map +1 -1
  7. package/dist/src/components/create-index-form/collapsible-input.d.ts +1 -1
  8. package/dist/src/components/create-index-form/collapsible-input.d.ts.map +1 -1
  9. package/dist/src/components/create-index-form/create-index-form.d.ts +2 -2
  10. package/dist/src/components/create-index-form/create-index-form.d.ts.map +1 -1
  11. package/dist/src/components/create-index-modal/create-index-modal.d.ts.map +1 -1
  12. package/dist/src/components/drop-index-modal/index.d.ts +1 -1
  13. package/dist/src/components/drop-index-modal/index.d.ts.map +1 -1
  14. package/dist/src/components/indexes/indexes.d.ts +1 -1
  15. package/dist/src/components/indexes/indexes.d.ts.map +1 -1
  16. package/dist/src/components/indexes-table/badge-with-icon-link.d.ts +1 -1
  17. package/dist/src/components/indexes-table/badge-with-icon-link.d.ts.map +1 -1
  18. package/dist/src/components/indexes-table/index-actions.d.ts +1 -1
  19. package/dist/src/components/indexes-table/index-actions.d.ts.map +1 -1
  20. package/dist/src/components/indexes-table/indexes-table.d.ts +1 -1
  21. package/dist/src/components/indexes-table/indexes-table.d.ts.map +1 -1
  22. package/dist/src/components/indexes-table/property-field.d.ts +2 -2
  23. package/dist/src/components/indexes-table/property-field.d.ts.map +1 -1
  24. package/dist/src/components/indexes-table/size-field.d.ts +1 -1
  25. package/dist/src/components/indexes-table/size-field.d.ts.map +1 -1
  26. package/dist/src/components/indexes-table/type-field.d.ts +1 -1
  27. package/dist/src/components/indexes-table/type-field.d.ts.map +1 -1
  28. package/dist/src/components/indexes-table/usage-field.d.ts +1 -1
  29. package/dist/src/components/indexes-table/usage-field.d.ts.map +1 -1
  30. package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts +1 -1
  31. package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts.map +1 -1
  32. package/dist/src/create-index-plugin.d.ts +3 -3
  33. package/dist/src/create-index-plugin.d.ts.map +1 -1
  34. package/dist/src/drop-index-plugin.d.ts +3 -3
  35. package/dist/src/drop-index-plugin.d.ts.map +1 -1
  36. package/dist/src/modules/create-index/fields.d.ts +1 -1
  37. package/dist/src/modules/create-index/fields.d.ts.map +1 -1
  38. package/dist/src/modules/create-index/index.d.ts +14 -14
  39. package/dist/src/modules/create-index/index.d.ts.map +1 -1
  40. package/dist/src/modules/create-index/options.d.ts +7 -7
  41. package/dist/src/modules/create-index/options.d.ts.map +1 -1
  42. package/dist/src/modules/data-service.d.ts +2 -2
  43. package/dist/src/modules/data-service.d.ts.map +1 -1
  44. package/dist/src/modules/drop-index/index.d.ts +2 -2
  45. package/dist/src/modules/drop-index/index.d.ts.map +1 -1
  46. package/dist/src/modules/error.d.ts +5 -5
  47. package/dist/src/modules/error.d.ts.map +1 -1
  48. package/dist/src/modules/in-progress-indexes.d.ts +11 -7
  49. package/dist/src/modules/in-progress-indexes.d.ts.map +1 -1
  50. package/dist/src/modules/index.d.ts +2 -2
  51. package/dist/src/modules/index.d.ts.map +1 -1
  52. package/dist/src/modules/indexes.d.ts +10 -27
  53. package/dist/src/modules/indexes.d.ts.map +1 -1
  54. package/dist/src/modules/is-refreshing.d.ts +4 -4
  55. package/dist/src/modules/is-refreshing.d.ts.map +1 -1
  56. package/dist/src/modules/server-version.d.ts +2 -2
  57. package/dist/src/modules/server-version.d.ts.map +1 -1
  58. package/dist/src/modules/sort-column.d.ts +1 -1
  59. package/dist/src/modules/sort-column.d.ts.map +1 -1
  60. package/dist/src/modules/sort-order.d.ts +1 -1
  61. package/dist/src/modules/sort-order.d.ts.map +1 -1
  62. package/dist/src/plugin.d.ts +3 -3
  63. package/dist/src/plugin.d.ts.map +1 -1
  64. package/dist/src/stores/create-index.d.ts +11 -11
  65. package/dist/src/stores/index.d.ts +2 -2
  66. package/dist/src/stores/index.d.ts.map +1 -1
  67. package/dist/src/utils/index-link-helper.d.ts +1 -23
  68. package/dist/src/utils/index-link-helper.d.ts.map +1 -1
  69. package/package.json +20 -22
  70. package/dist/src/modules/link.d.ts +0 -2
  71. package/dist/src/modules/link.d.ts.map +0 -1
@@ -1,10 +1,11 @@
1
+ import type { IndexDefinition as _IndexDefinition } from 'mongodb-data-service';
1
2
  import type { ThunkAction } from 'redux-thunk';
2
3
  import type { AnyAction } from 'redux';
3
4
  import type { RootState } from './index';
4
5
  import type { HandleErrorAction } from './error';
5
6
  import type { RefreshFinishedAction } from './is-refreshing';
6
- export declare type SortColumn = keyof typeof sortColumnToProps;
7
- export declare type SortDirection = 'asc' | 'desc';
7
+ export type SortColumn = keyof typeof sortColumnToProps;
8
+ export type SortDirection = 'asc' | 'desc';
8
9
  declare const sortColumnToProps: {
9
10
  readonly 'Name and Definition': "name";
10
11
  readonly Type: "type";
@@ -12,47 +13,29 @@ declare const sortColumnToProps: {
12
13
  readonly Usage: "usageCount";
13
14
  readonly Properties: "properties";
14
15
  };
15
- export declare type IndexFieldsDefinition = {
16
- field: string;
17
- value: number | string;
18
- };
19
- export declare type IndexDefinition = {
20
- name: string;
21
- ns: string;
22
- fields: {
23
- serialize: () => IndexFieldsDefinition[];
24
- };
25
- type: 'regular' | 'geospatial' | 'hashed' | 'text' | 'wildcard' | 'clustered' | 'columnstore';
26
- cardinality: 'single' | 'compound';
27
- properties: ('unique' | 'sparse' | 'partial' | 'ttl' | 'collation')[];
28
- extra: Record<string, string | number | Record<string, any>>;
29
- size: number;
30
- relativeSize: number;
31
- usageCount: number;
32
- usageSince?: Date;
33
- usageHost?: string;
34
- };
16
+ export type IndexDefinition = Omit<_IndexDefinition, 'type' | 'cardinality' | 'properties' | 'version'> & Partial<_IndexDefinition>;
17
+ export type IndexFieldsDefinition = _IndexDefinition['fields'];
35
18
  export declare enum ActionTypes {
36
19
  LoadIndexes = "indexes/indexes/LOAD_INDEXES",
37
20
  SortIndexes = "indexes/indexes/SORT_INDEXES"
38
21
  }
39
- declare type LoadIndexesAction = {
22
+ type LoadIndexesAction = {
40
23
  type: ActionTypes.LoadIndexes;
41
24
  indexes: IndexDefinition[];
42
25
  };
43
- export declare type SortIndexesAction = {
26
+ export type SortIndexesAction = {
44
27
  type: ActionTypes.SortIndexes;
45
28
  indexes: IndexDefinition[];
46
29
  column: SortColumn;
47
30
  order: SortDirection;
48
31
  };
49
- declare type Actions = LoadIndexesAction | SortIndexesAction;
50
- declare type State = IndexDefinition[];
32
+ type Actions = LoadIndexesAction | SortIndexesAction;
33
+ type State = IndexDefinition[];
51
34
  export declare const INITIAL_STATE: State;
52
35
  export default function reducer(state: State | undefined, action: Actions): State;
53
36
  export declare const loadIndexes: (indexes: IndexDefinition[]) => LoadIndexesAction;
54
37
  export declare const sortIndexes: (column: SortColumn, order: SortDirection) => ThunkAction<void, RootState, void, SortIndexesAction>;
55
- export declare const fetchIndexes: () => ThunkAction<void, RootState, void, LoadIndexesAction | RefreshFinishedAction | HandleErrorAction>;
38
+ export declare const fetchIndexes: () => ThunkAction<Promise<void>, RootState, void, LoadIndexesAction | RefreshFinishedAction | HandleErrorAction>;
56
39
  export declare const dropFailedIndex: (id: string) => ThunkAction<void, RootState, void, AnyAction>;
57
40
  export {};
58
41
  //# sourceMappingURL=indexes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/indexes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,aAAa,CAAC;AAG9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MA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AG,qBAAqB,GAAG,iBAAiB,CAuC9D,CAAC;AAmEF,eAAO,MAAM,eAAe,OACtB,MAAM,KACT,YAAY,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,CAK9C,CAAC"}
@@ -4,14 +4,14 @@ export declare enum ActionTypes {
4
4
  RefreshStarted = "indexes/is-refreshing/RefreshStarted",
5
5
  RefreshFinished = "indexes/is-refreshing/RefreshFinished"
6
6
  }
7
- declare type RefreshStartedAction = {
7
+ type RefreshStartedAction = {
8
8
  type: ActionTypes.RefreshStarted;
9
9
  };
10
- export declare type RefreshFinishedAction = {
10
+ export type RefreshFinishedAction = {
11
11
  type: ActionTypes.RefreshFinished;
12
12
  };
13
- declare type Actions = RefreshStartedAction | RefreshFinishedAction;
14
- declare type State = boolean;
13
+ type Actions = RefreshStartedAction | RefreshFinishedAction;
14
+ type State = boolean;
15
15
  export declare const INITIAL_STATE: State;
16
16
  export default function reducer(state: boolean | undefined, action: Actions): boolean;
17
17
  export declare const refreshIndexes: () => ThunkAction<void, RootState, void, Actions>;
@@ -1 +1 @@
1
- {"version":3,"file":"is-refreshing.d.ts","sourceRoot":"","sources":["../../../src/modules/is-refreshing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,oBAAY,WAAW;IACrB,cAAc,yCAAyC;IACvD,eAAe,0CAA0C;CAC1D;AAED,aAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,WAAW,CAAC,cAAc,CAAC;CAClC,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,IAAI,EAAE,WAAW,CAAC,eAAe,CAAC;CACnC,CAAC;AAEF,aAAK,OAAO,GAAG,oBAAoB,GAAG,qBAAqB,CAAC;AAE5D,aAAK,KAAK,GAAG,OAAO,CAAC;AAErB,eAAO,MAAM,aAAa,EAAE,KAAa,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,qBAAgB,EAAE,MAAM,EAAE,OAAO,WAQrE;AAED,eAAO,MAAM,cAAc,QAAO,YAChC,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,OAAO,CAQR,CAAC"}
1
+ {"version":3,"file":"is-refreshing.d.ts","sourceRoot":"","sources":["../../../src/modules/is-refreshing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,oBAAY,WAAW;IACrB,cAAc,yCAAyC;IACvD,eAAe,0CAA0C;CAC1D;AAED,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,WAAW,CAAC,cAAc,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,WAAW,CAAC,eAAe,CAAC;CACnC,CAAC;AAEF,KAAK,OAAO,GAAG,oBAAoB,GAAG,qBAAqB,CAAC;AAE5D,KAAK,KAAK,GAAG,OAAO,CAAC;AAErB,eAAO,MAAM,aAAa,EAAE,KAAa,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,qBAAgB,EAAE,MAAM,EAAE,OAAO,WAQrE;AAED,eAAO,MAAM,cAAc,QAAO,YAChC,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,OAAO,CAQR,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export declare const SERVER_VERSION_CHANGED: string;
2
- declare type ServerVersion = string;
3
- declare type ServerVersionChangedAction = {
2
+ type ServerVersion = string;
3
+ type ServerVersionChangedAction = {
4
4
  type: typeof SERVER_VERSION_CHANGED;
5
5
  version: ServerVersion;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"server-version.d.ts","sourceRoot":"","sources":["../../../src/modules/server-version.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB,QAAoD,CAAC;AAExF,aAAK,aAAa,GAAG,MAAM,CAAC;AAE5B,aAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,OAAO,sBAAsB,CAAC;IACpC,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;AAKF,eAAO,MAAM,aAAa,EAAE,aAAuB,CAAC;AAUpD,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,oBAAgB,EACrB,MAAM,EAAE,0BAA0B,GACjC,aAAa,CAKf;AASD,eAAO,MAAM,oBAAoB,YACtB,aAAa,KACrB,0BAGD,CAAC"}
1
+ {"version":3,"file":"server-version.d.ts","sourceRoot":"","sources":["../../../src/modules/server-version.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB,QAAoD,CAAC;AAExF,KAAK,aAAa,GAAG,MAAM,CAAC;AAE5B,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,OAAO,sBAAsB,CAAC;IACpC,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;AAKF,eAAO,MAAM,aAAa,EAAE,aAAuB,CAAC;AAUpD,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,oBAAgB,EACrB,MAAM,EAAE,0BAA0B,GACjC,aAAa,CAKf;AASD,eAAO,MAAM,oBAAoB,YACtB,aAAa,KACrB,0BAGD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { SortColumn, SortIndexesAction } from './indexes';
2
- declare type State = SortColumn;
2
+ type State = SortColumn;
3
3
  export declare const INITIAL_STATE: State;
4
4
  export default function reducer(state: "Name and Definition" | "Type" | "Size" | "Usage" | "Properties" | undefined, action: Pick<SortIndexesAction, 'type' | 'column'>): "Name and Definition" | "Type" | "Size" | "Usage" | "Properties";
5
5
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"sort-column.d.ts","sourceRoot":"","sources":["../../../src/modules/sort-column.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE/D,aAAK,KAAK,GAAG,UAAU,CAAC;AAExB,eAAO,MAAM,aAAa,EAAE,KAA6B,CAAC;AAE1D,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,8EAAgB,EACrB,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,QAAQ,CAAC,oEAMnD"}
1
+ {"version":3,"file":"sort-column.d.ts","sourceRoot":"","sources":["../../../src/modules/sort-column.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE/D,KAAK,KAAK,GAAG,UAAU,CAAC;AAExB,eAAO,MAAM,aAAa,EAAE,KAA6B,CAAC;AAE1D,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,8EAAgB,EACrB,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,QAAQ,CAAC,oEAMnD"}
@@ -1,5 +1,5 @@
1
1
  import type { SortDirection, SortIndexesAction } from './indexes';
2
- declare type State = SortDirection;
2
+ type State = SortDirection;
3
3
  export declare const INITIAL_STATE: State;
4
4
  export default function reducer(state: SortDirection | undefined, action: Pick<SortIndexesAction, 'type' | 'order'>): SortDirection;
5
5
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"sort-order.d.ts","sourceRoot":"","sources":["../../../src/modules/sort-order.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAElE,aAAK,KAAK,GAAG,aAAa,CAAC;AAE3B,eAAO,MAAM,aAAa,EAAE,KAAa,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,2BAAgB,EACrB,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,iBAMlD"}
1
+ {"version":3,"file":"sort-order.d.ts","sourceRoot":"","sources":["../../../src/modules/sort-order.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAElE,KAAK,KAAK,GAAG,aAAa,CAAC;AAE3B,eAAO,MAAM,aAAa,EAAE,KAAa,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,2BAAgB,EACrB,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,iBAMlD"}
@@ -8,7 +8,7 @@ declare class Plugin extends React.Component<any, any, any> {
8
8
  constructor(props: any, context: any);
9
9
  render(): React.Component;
10
10
  }
11
- import React from "react";
12
- import { Component } from "react";
13
- import PropTypes from "prop-types";
11
+ import React from 'react';
12
+ import { Component } from 'react';
13
+ import PropTypes from 'prop-types';
14
14
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.jsx"],"names":[],"mappings":";AAKA;IACE,2BAAqC;IACrC;;MAEE;IAiB8ylB,wBAA8C;IAAA,sCAAyJ;IAVv/lB,UAFa,eAAe,CAQ3B;CACF"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.jsx"],"names":[],"mappings":";AAKA;IACE,2BAAqC;IACrC;;MAEE;IAiB8ylB,wBAA8C;IAAA,sCAAyJ;IAVv/lB,UAFa,eAAe,CAQ3B;CACF;kBAvBgC,OAAO;0BAAP,OAAO;sBAElB,YAAY"}
@@ -12,22 +12,12 @@ declare function configureStore(options?: {}): import("redux").Store<import("red
12
12
  schemaFields: string[];
13
13
  error: string | null;
14
14
  options: {
15
- name: {
16
- enabled: boolean;
17
- } & {
18
- value: string;
19
- };
20
15
  unique: {
21
16
  enabled: boolean;
22
17
  } & {
23
18
  value: boolean;
24
19
  };
25
- sparse: {
26
- enabled: boolean;
27
- } & {
28
- value: boolean;
29
- };
30
- collation: {
20
+ name: {
31
21
  enabled: boolean;
32
22
  } & {
33
23
  value: string;
@@ -47,11 +37,21 @@ declare function configureStore(options?: {}): import("redux").Store<import("red
47
37
  } & {
48
38
  value: string;
49
39
  };
40
+ collation: {
41
+ enabled: boolean;
42
+ } & {
43
+ value: string;
44
+ };
50
45
  columnstoreProjection: {
51
46
  enabled: boolean;
52
47
  } & {
53
48
  value: string;
54
49
  };
50
+ sparse: {
51
+ enabled: boolean;
52
+ } & {
53
+ value: boolean;
54
+ };
55
55
  };
56
56
  }, import("redux").Action<any>> & {
57
57
  dispatch: any;
@@ -1,5 +1,5 @@
1
1
  export default configureStore;
2
2
  export { setDataProvider };
3
- import configureStore from "./store";
4
- import { setDataProvider } from "./store";
3
+ import configureStore from './store';
4
+ import { setDataProvider } from './store';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stores/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stores/index.js"],"names":[],"mappings":";;2BAAgD,SAAS;gCAAT,SAAS"}
@@ -1,24 +1,2 @@
1
- declare const HELP_URLS: {
2
- SINGLE: string;
3
- COMPOUND: string;
4
- UNIQUE: string;
5
- PARTIAL: string;
6
- SPARSE: string;
7
- TTL: string;
8
- '2D': string;
9
- '2DSPHERE': string;
10
- GEOHAYSTACK: string;
11
- GEOSPATIAL: string;
12
- WILDCARD: string;
13
- CLUSTERED: string;
14
- COLUMNSTORE: null;
15
- TEXT: string;
16
- HASHED: string;
17
- REGULAR: string;
18
- COLLATION: string;
19
- COLLATION_REF: string;
20
- UNKNOWN: null;
21
- };
22
- export default function getIndexHelpLink(section: keyof typeof HELP_URLS): string | null;
23
- export {};
1
+ export default function getIndexHelpLink(section?: string): string | null;
24
2
  //# sourceMappingURL=index-link-helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-link-helper.d.ts","sourceRoot":"","sources":["../../../src/utils/index-link-helper.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAwBd,CAAC;AAOF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,OAAO,EAAE,MAAM,OAAO,SAAS,iBAEvE"}
1
+ {"version":3,"file":"index-link-helper.d.ts","sourceRoot":"","sources":["../../../src/utils/index-link-helper.ts"],"names":[],"mappings":"AA+BA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,OAAO,SAAY,iBAE3D"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@mongodb-js/compass-indexes",
3
3
  "productName": "Compass Indexes plugin",
4
4
  "description": "Collection index management for Compass",
5
- "version": "5.7.0",
5
+ "version": "5.8.0",
6
6
  "author": {
7
7
  "name": "MongoDB Inc",
8
8
  "email": "compass@mongodb.com"
@@ -50,28 +50,27 @@
50
50
  "check-ci": "npm run check",
51
51
  "test": "mocha",
52
52
  "test-electron": "xvfb-maybe electron-mocha --no-sandbox",
53
- "test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
53
+ "test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
54
54
  "test-watch": "npm run test -- --watch",
55
55
  "test-ci": "npm run test-cov",
56
56
  "test-ci-electron": "npm run test-electron",
57
57
  "reformat": "npm run prettier -- --write . && npm run eslint . --fix"
58
58
  },
59
59
  "peerDependencies": {
60
- "@mongodb-js/compass-components": "^1.7.0",
61
- "@mongodb-js/compass-editor": "^0.6.0",
62
- "@mongodb-js/compass-logging": "^1.1.4",
63
- "@mongodb-js/mongodb-redux-common": "^2.0.6",
60
+ "@mongodb-js/compass-components": "^1.8.0",
61
+ "@mongodb-js/compass-editor": "^0.7.0",
62
+ "@mongodb-js/compass-logging": "^1.1.5",
63
+ "@mongodb-js/mongodb-redux-common": "^2.0.7",
64
64
  "bson": "^5.0.1",
65
- "compass-preferences-model": "^2.7.0",
66
- "mongodb-index-model": "^4.1.2",
65
+ "compass-preferences-model": "^2.8.0",
67
66
  "react": "^17.0.2"
68
67
  },
69
68
  "devDependencies": {
70
- "@mongodb-js/eslint-config-compass": "^1.0.4",
71
- "@mongodb-js/mocha-config-compass": "^1.1.0",
69
+ "@mongodb-js/eslint-config-compass": "^1.0.5",
70
+ "@mongodb-js/mocha-config-compass": "^1.1.1",
72
71
  "@mongodb-js/prettier-config-compass": "^1.0.0",
73
- "@mongodb-js/tsconfig-compass": "^1.0.1",
74
- "@mongodb-js/webpack-config-compass": "^1.0.7",
72
+ "@mongodb-js/tsconfig-compass": "^1.0.2",
73
+ "@mongodb-js/webpack-config-compass": "^1.0.8",
75
74
  "@testing-library/react": "^12.1.4",
76
75
  "@testing-library/user-event": "^13.5.0",
77
76
  "chai": "^4.2.0",
@@ -80,12 +79,12 @@
80
79
  "electron": "^22.0.2",
81
80
  "enzyme": "^3.11.0",
82
81
  "eslint": "^7.25.0",
83
- "hadron-app-registry": "^9.0.5",
82
+ "hadron-app-registry": "^9.0.6",
84
83
  "lodash.clonedeep": "^4.5.0",
85
84
  "lodash.contains": "^2.4.3",
86
- "mocha": "^8.4.0",
85
+ "mocha": "^10.2.0",
87
86
  "mongodb": "^5.1.0",
88
- "mongodb-data-service": "^22.5.1",
87
+ "mongodb-data-service": "^22.6.0",
89
88
  "mongodb-query-parser": "^2.4.8",
90
89
  "numeral": "^2.0.6",
91
90
  "nyc": "^15.1.0",
@@ -102,13 +101,12 @@
102
101
  "xvfb-maybe": "^0.2.1"
103
102
  },
104
103
  "dependencies": {
105
- "@mongodb-js/compass-components": "^1.7.0",
106
- "@mongodb-js/compass-editor": "^0.6.0",
107
- "@mongodb-js/compass-logging": "^1.1.4",
108
- "@mongodb-js/mongodb-redux-common": "^2.0.6",
104
+ "@mongodb-js/compass-components": "^1.8.0",
105
+ "@mongodb-js/compass-editor": "^0.7.0",
106
+ "@mongodb-js/compass-logging": "^1.1.5",
107
+ "@mongodb-js/mongodb-redux-common": "^2.0.7",
109
108
  "bson": "^5.0.1",
110
- "compass-preferences-model": "^2.7.0",
111
- "mongodb-index-model": "^4.1.2"
109
+ "compass-preferences-model": "^2.8.0"
112
110
  },
113
- "gitHead": "fe181eedfcb07251b9b9a3dce8254a4941d74e42"
111
+ "gitHead": "e4f2643a437ce2407657a63246e303d13ce8297b"
114
112
  }
@@ -1,2 +0,0 @@
1
- export function openLink(href: string): Function;
2
- //# sourceMappingURL=link.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/modules/link.js"],"names":[],"mappings":"AAUO,iDAUN"}