@mongodb-js/compass-indexes 5.13.0 → 5.15.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.
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/components/create-index-actions/create-index-actions.d.ts +0 -1
- package/dist/src/components/create-index-actions/create-index-actions.d.ts.map +1 -1
- package/dist/src/components/create-index-form/create-index-form.d.ts +0 -1
- package/dist/src/components/create-index-form/create-index-form.d.ts.map +1 -1
- package/dist/src/components/create-index-modal/create-index-modal.d.ts.map +1 -1
- package/dist/src/components/indexes/indexes.d.ts +11 -25
- package/dist/src/components/indexes/indexes.d.ts.map +1 -1
- package/dist/src/components/indexes-table/indexes-table.d.ts +1 -1
- package/dist/src/components/indexes-table/indexes-table.d.ts.map +1 -1
- package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts +25 -10
- package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts.map +1 -1
- package/dist/src/components/regular-indexes-table/index-actions.d.ts +3 -3
- package/dist/src/components/regular-indexes-table/index-actions.d.ts.map +1 -1
- package/dist/src/components/regular-indexes-table/property-field.d.ts +5 -5
- package/dist/src/components/regular-indexes-table/property-field.d.ts.map +1 -1
- package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts +19 -6
- package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts.map +1 -1
- package/dist/src/components/regular-indexes-table/type-field.d.ts +5 -5
- package/dist/src/components/regular-indexes-table/type-field.d.ts.map +1 -1
- package/dist/src/components/regular-indexes-table/usage-field.d.ts.map +1 -1
- package/dist/src/components/search-index-template-dropdown/index.d.ts +9 -0
- package/dist/src/components/search-index-template-dropdown/index.d.ts.map +1 -0
- package/dist/src/components/search-indexes-modals/base-search-index-modal.d.ts +17 -0
- package/dist/src/components/search-indexes-modals/base-search-index-modal.d.ts.map +1 -0
- package/dist/src/components/search-indexes-modals/create-search-index-modal.d.ts +19 -0
- package/dist/src/components/search-indexes-modals/create-search-index-modal.d.ts.map +1 -0
- package/dist/src/components/search-indexes-modals/index.d.ts +3 -0
- package/dist/src/components/search-indexes-modals/index.d.ts.map +1 -0
- package/dist/src/components/search-indexes-modals/update-search-index-modal.d.ts +20 -0
- package/dist/src/components/search-indexes-modals/update-search-index-modal.d.ts.map +1 -0
- package/dist/src/components/search-indexes-table/search-index-actions.d.ts +11 -0
- package/dist/src/components/search-indexes-table/search-index-actions.d.ts.map +1 -0
- package/dist/src/components/search-indexes-table/search-indexes-table.d.ts +30 -0
- package/dist/src/components/search-indexes-table/search-indexes-table.d.ts.map +1 -0
- package/dist/src/components/search-indexes-table/zero-graphic.d.ts +4 -0
- package/dist/src/components/search-indexes-table/zero-graphic.d.ts.map +1 -0
- package/dist/src/modules/create-index/index.d.ts.map +1 -1
- package/dist/src/modules/create-index/options.d.ts +0 -1
- package/dist/src/modules/create-index/options.d.ts.map +1 -1
- package/dist/src/modules/drop-index/index.d.ts.map +1 -1
- package/dist/src/modules/fields.d.ts +18 -0
- package/dist/src/modules/fields.d.ts.map +1 -0
- package/dist/src/modules/index-view.d.ts +16 -0
- package/dist/src/modules/index-view.d.ts.map +1 -0
- package/dist/src/modules/index.d.ts +17 -4
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/regular-indexes.d.ts +13 -14
- package/dist/src/modules/regular-indexes.d.ts.map +1 -1
- package/dist/src/modules/search-indexes.d.ts +82 -8
- package/dist/src/modules/search-indexes.d.ts.map +1 -1
- package/dist/src/stores/create-index.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +14 -4
- package/dist/src/stores/store.d.ts.map +1 -1
- package/dist/src/utils/modal-descriptions.d.ts +0 -1
- package/dist/src/utils/modal-descriptions.d.ts.map +1 -1
- package/package.json +19 -16
@@ -1,9 +1,8 @@
|
|
1
1
|
import type { IndexDefinition as _IndexDefinition } from 'mongodb-data-service';
|
2
2
|
import type { AnyAction } from 'redux';
|
3
3
|
import type { CreateIndexSpec } from './create-index';
|
4
|
-
import type { IndexesThunkAction } from '.';
|
5
|
-
export type
|
6
|
-
export type SortDirection = 'asc' | 'desc';
|
4
|
+
import type { SortDirection, IndexesThunkAction } from '.';
|
5
|
+
export type RegularSortColumn = keyof typeof sortColumnToProps;
|
7
6
|
declare const sortColumnToProps: {
|
8
7
|
readonly 'Name and Definition': "name";
|
9
8
|
readonly Type: "type";
|
@@ -11,7 +10,7 @@ declare const sortColumnToProps: {
|
|
11
10
|
readonly Usage: "usageCount";
|
12
11
|
readonly Properties: "properties";
|
13
12
|
};
|
14
|
-
export type
|
13
|
+
export type RegularIndex = Omit<_IndexDefinition, 'type' | 'cardinality' | 'properties' | 'version'> & Partial<_IndexDefinition>;
|
15
14
|
export type InProgressIndex = {
|
16
15
|
id: string;
|
17
16
|
key: CreateIndexSpec;
|
@@ -40,13 +39,13 @@ export declare enum ActionTypes {
|
|
40
39
|
}
|
41
40
|
type IndexesAddedAction = {
|
42
41
|
type: ActionTypes.IndexesAdded;
|
43
|
-
indexes:
|
42
|
+
indexes: RegularIndex[];
|
44
43
|
};
|
45
44
|
type IndexesSortedAction = {
|
46
45
|
type: ActionTypes.IndexesSorted;
|
47
|
-
indexes:
|
46
|
+
indexes: RegularIndex[];
|
48
47
|
sortOrder: SortDirection;
|
49
|
-
sortColumn:
|
48
|
+
sortColumn: RegularSortColumn;
|
50
49
|
};
|
51
50
|
type SetIsRefreshingAction = {
|
52
51
|
type: ActionTypes.SetIsRefreshing;
|
@@ -71,27 +70,27 @@ type InProgressIndexFailedAction = {
|
|
71
70
|
};
|
72
71
|
type RegularIndexesActions = IndexesAddedAction | IndexesSortedAction | SetIsRefreshingAction | SetErrorAction | InProgressIndexAddedAction | InProgressIndexRemovedAction | InProgressIndexFailedAction;
|
73
72
|
export type State = {
|
74
|
-
indexes:
|
73
|
+
indexes: RegularIndex[];
|
75
74
|
sortOrder: SortDirection;
|
76
|
-
sortColumn:
|
75
|
+
sortColumn: RegularSortColumn;
|
77
76
|
isRefreshing: boolean;
|
78
77
|
inProgressIndexes: InProgressIndex[];
|
79
78
|
error: string | null;
|
80
79
|
};
|
81
80
|
export declare const INITIAL_STATE: State;
|
82
81
|
export default function reducer(state: State | undefined, action: AnyAction): State;
|
83
|
-
export declare const
|
84
|
-
export declare const setError: (error: string | null) => SetErrorAction;
|
82
|
+
export declare const setRegularIndexes: (indexes: RegularIndex[]) => IndexesAddedAction;
|
85
83
|
export declare const fetchIndexes: () => IndexesThunkAction<Promise<void>, RegularIndexesActions>;
|
86
|
-
export declare const
|
87
|
-
export declare const
|
84
|
+
export declare const sortRegularIndexes: (column: RegularSortColumn, order: SortDirection) => IndexesThunkAction<void, IndexesSortedAction>;
|
85
|
+
export declare const refreshRegularIndexes: () => IndexesThunkAction<void>;
|
88
86
|
export declare const inProgressIndexAdded: (inProgressIndex: InProgressIndex) => InProgressIndexAddedAction;
|
89
87
|
export declare const inProgressIndexRemoved: (inProgressIndexId: string) => InProgressIndexRemovedAction;
|
90
88
|
export declare const inProgressIndexFailed: ({ inProgressIndexId, error, }: {
|
91
89
|
inProgressIndexId: string;
|
92
90
|
error: string;
|
93
91
|
}) => InProgressIndexFailedAction;
|
94
|
-
export declare const
|
92
|
+
export declare const dropIndex: (name: string) => IndexesThunkAction<void>;
|
93
|
+
export declare const showCreateModal: () => IndexesThunkAction<void>;
|
95
94
|
export declare const hideIndex: (indexName: string) => IndexesThunkAction<Promise<void>>;
|
96
95
|
export declare const unhideIndex: (indexName: string) => IndexesThunkAction<Promise<void>>;
|
97
96
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"regular-indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/regular-indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"regular-indexes.d.ts","sourceRoot":"","sources":["../../../src/modules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O,MAAM,aAAa,EAAE,KAO3B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,mBAAgB,EAAE,MAAM,EAAE,SAAS,SAkFvE;AAED,eAAO,MAAM,iBAAiB,YACnB,YAAY,EAAE,KACtB,kBAGD,CAAC;AAsBH,eAAO,MAAM,YAAY,QAAO,mBAC9B,QAAQ,IAAI,CAAC,EACb,qBAAqB,CAkCtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,WACrB,iBAAiB,SAClB,aAAa,KACnB,mBAAmB,IAAI,EAAE,mBAAmB,CAiB9C,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAO,mBAAmB,IAAI,CAK/D,CAAC;AAEF,eAAO,MAAM,oBAAoB,oBACd,eAAe,KAC/B,0BAGD,CAAC;AAEH,eAAO,MAAM,sBAAsB,sBACd,MAAM,KACxB,4BAGD,CAAC;AAEH,eAAO,MAAM,qBAAqB;uBAIb,MAAM;WAClB,MAAM;MACX,2BAIF,CAAC;AAEH,eAAO,MAAM,SAAS,SAAU,MAAM,KAAG,mBAAmB,IAAI,CAiB/D,CAAC;AAEF,eAAO,MAAM,eAAe,QAAO,mBAAmB,IAAI,CAIzD,CAAC;AAEF,eAAO,MAAM,SAAS,cACT,MAAM,KAChB,mBAAmB,QAAQ,IAAI,CAAC,CA8BlC,CAAC;AAEF,eAAO,MAAM,WAAW,cACX,MAAM,KAChB,mBAAmB,QAAQ,IAAI,CAAC,CA8BlC,CAAC"}
|
@@ -1,23 +1,97 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import type { AnyAction } from 'redux';
|
3
|
+
import type { Document } from 'mongodb';
|
4
|
+
import type { SortDirection, IndexesThunkAction } from '.';
|
5
|
+
import type { SearchIndex } from 'mongodb-data-service';
|
6
|
+
export type SearchSortColumn = keyof typeof sortColumnToProps;
|
7
|
+
declare const sortColumnToProps: {
|
8
|
+
readonly 'Name and Fields': "name";
|
9
|
+
readonly Status: "status";
|
10
|
+
};
|
2
11
|
export declare enum SearchIndexesStatuses {
|
3
12
|
NOT_AVAILABLE = "NOT_AVAILABLE",
|
4
|
-
|
13
|
+
NOT_READY = "NOT_READY",
|
5
14
|
READY = "READY",
|
6
|
-
|
15
|
+
FETCHING = "FETCHING",
|
16
|
+
REFRESHING = "REFRESHING",
|
17
|
+
POLLING = "POLLING",
|
18
|
+
ERROR = "ERROR"
|
7
19
|
}
|
8
|
-
type SearchIndexesStatus = keyof typeof SearchIndexesStatuses;
|
20
|
+
export type SearchIndexesStatus = keyof typeof SearchIndexesStatuses;
|
9
21
|
export declare enum ActionTypes {
|
10
|
-
SetStatus = "indexes/
|
22
|
+
SetStatus = "indexes/search-indexes/SetStatus",
|
23
|
+
SetSearchIndexes = "indexes/search-indexes/SetSearchIndexes",
|
24
|
+
SearchIndexesSorted = "indexes/search-indexes/SearchIndexesSorted",
|
25
|
+
SetError = "indexes/search-indexes/SetError",
|
26
|
+
OpenCreateSearchIndexModal = "indexes/search-indexes/OpenCreateSearchIndexModal",
|
27
|
+
CreateSearchIndexStarted = "indexes/search-indexes/CreateSearchIndexStarted",
|
28
|
+
CreateSearchIndexFailed = "indexes/search-indexes/CreateSearchIndexFailed",
|
29
|
+
CreateSearchIndexSucceeded = "indexes/search-indexes/CreateSearchIndexSucceed",
|
30
|
+
CreateSearchIndexCancelled = "indexes/search-indexes/CreateSearchIndexCancelled",
|
31
|
+
OpenUpdateSearchIndexModal = "indexes/search-indexes/OpenUpdateSearchIndexModal",
|
32
|
+
UpdateSearchIndexStarted = "indexes/search-indexes/UpdateSearchIndexStarted",
|
33
|
+
UpdateSearchIndexFailed = "indexes/search-indexes/UpdateSearchIndexFailed",
|
34
|
+
UpdateSearchIndexSucceeded = "indexes/search-indexes/UpdateSearchIndexSucceed",
|
35
|
+
UpdateSearchIndexCancelled = "indexes/search-indexes/UpdateSearchIndexCancelled"
|
11
36
|
}
|
12
|
-
type
|
13
|
-
type: ActionTypes.
|
14
|
-
|
37
|
+
type OpenCreateSearchIndexModalAction = {
|
38
|
+
type: ActionTypes.OpenCreateSearchIndexModal;
|
39
|
+
};
|
40
|
+
type CreateSearchIndexCancelledAction = {
|
41
|
+
type: ActionTypes.CreateSearchIndexCancelled;
|
42
|
+
};
|
43
|
+
type OpenUpdateSearchIndexModalAction = {
|
44
|
+
type: ActionTypes.OpenUpdateSearchIndexModal;
|
45
|
+
indexName: string;
|
46
|
+
};
|
47
|
+
type UpdateSearchIndexCancelledAction = {
|
48
|
+
type: ActionTypes.UpdateSearchIndexCancelled;
|
49
|
+
};
|
50
|
+
type CreateSearchIndexState = {
|
51
|
+
isModalOpen: boolean;
|
52
|
+
isBusy: boolean;
|
53
|
+
error?: string;
|
54
|
+
};
|
55
|
+
type UpdateSearchIndexState = {
|
56
|
+
isModalOpen: boolean;
|
57
|
+
isBusy: boolean;
|
58
|
+
indexName: string;
|
59
|
+
error?: string;
|
15
60
|
};
|
16
61
|
export type State = {
|
17
62
|
status: SearchIndexesStatus;
|
63
|
+
createIndex: CreateSearchIndexState;
|
64
|
+
updateIndex: UpdateSearchIndexState;
|
65
|
+
error?: string;
|
66
|
+
indexes: SearchIndex[];
|
67
|
+
sortOrder: SortDirection;
|
68
|
+
sortColumn: SearchSortColumn;
|
69
|
+
};
|
70
|
+
type SearchIndexesSortedAction = {
|
71
|
+
type: ActionTypes.SearchIndexesSorted;
|
72
|
+
indexes: SearchIndex[];
|
73
|
+
sortOrder: SortDirection;
|
74
|
+
sortColumn: SearchSortColumn;
|
18
75
|
};
|
19
76
|
export declare const INITIAL_STATE: State;
|
20
77
|
export default function reducer(state: State | undefined, action: AnyAction): State;
|
21
|
-
export declare const
|
78
|
+
export declare const showCreateModal: () => OpenCreateSearchIndexModalAction;
|
79
|
+
export declare const showUpdateModal: (indexName: string) => OpenUpdateSearchIndexModalAction;
|
80
|
+
export declare const closeCreateModal: () => CreateSearchIndexCancelledAction;
|
81
|
+
export declare const closeUpdateModal: () => UpdateSearchIndexCancelledAction;
|
82
|
+
export declare const createIndex: (indexName: string, indexDefinition: Document) => IndexesThunkAction<Promise<void>>;
|
83
|
+
export declare const updateIndex: (indexName: string, indexDefinition: Document) => IndexesThunkAction<Promise<void>>;
|
84
|
+
export declare const refreshSearchIndexes: () => IndexesThunkAction<Promise<void>>;
|
85
|
+
export declare const pollSearchIndexes: () => IndexesThunkAction<void>;
|
86
|
+
export declare const sortSearchIndexes: (column: SearchSortColumn, direction: SortDirection) => IndexesThunkAction<void, SearchIndexesSortedAction>;
|
87
|
+
export declare const showConfirmation: (props: {
|
88
|
+
title: string;
|
89
|
+
description: import("react").ReactNode;
|
90
|
+
buttonText?: string | undefined;
|
91
|
+
variant?: import("@mongodb-js/compass-components").ConfirmationModalVariant | undefined;
|
92
|
+
requiredInputText?: string | undefined;
|
93
|
+
}) => Promise<boolean>;
|
94
|
+
export declare const dropSearchIndex: (name: string) => IndexesThunkAction<Promise<void>>;
|
95
|
+
export declare const runAggregateSearchIndex: (name: string) => IndexesThunkAction<void>;
|
22
96
|
export {};
|
23
97
|
//# sourceMappingURL=search-indexes.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"search-indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/search-indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"search-indexes.d.ts","sourceRoot":"","sources":["../../../src/modules/search-indexes.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOxC,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAE3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKxD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE9D,QAAA,MAAM,iBAAiB;;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B,CAepD,CAAC;AAIF,eAAO,MAAM,gBAAgB;;;;;;sBAAwB,CAAC;AACtD,eAAO,MAAM,eAAe,SACpB,MAAM,KACX,mBAAmB,QAAQ,IAAI,CAAC,CAyClC,CAAC;AAEF,eAAO,MAAM,uBAAuB,SAC5B,MAAM,KACX,mBAAmB,IAAI,CAyBzB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-index.d.ts","sourceRoot":"","sources":["../../../src/stores/create-index.js"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"create-index.d.ts","sourceRoot":"","sources":["../../../src/stores/create-index.js"],"names":[],"mappings":"AAqBO,uCAJI,MAAM,SACN,MAAM,YACN,MAAM,QAQhB;;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { DataService } from 'mongodb-data-service';
|
2
2
|
import type AppRegistry from 'hadron-app-registry';
|
3
|
-
export type IndexesDataService = Pick<DataService, 'indexes' | 'isConnected' | 'updateCollection' | 'createIndex' | 'dropIndex'>;
|
3
|
+
export type IndexesDataService = Pick<DataService, 'indexes' | 'isConnected' | 'updateCollection' | 'createIndex' | 'dropIndex' | 'getSearchIndexes' | 'createSearchIndex' | 'updateSearchIndex' | 'dropSearchIndex'>;
|
4
4
|
export type ConfigureStoreOptions = {
|
5
5
|
dataProvider: {
|
6
6
|
dataProvider?: IndexesDataService;
|
@@ -15,15 +15,25 @@ export type ConfigureStoreOptions = {
|
|
15
15
|
declare const configureStore: (options: ConfigureStoreOptions) => import("redux").Store<import("redux").EmptyObject & {
|
16
16
|
isWritable: boolean;
|
17
17
|
isReadonlyView: boolean;
|
18
|
+
indexView: import("../modules/index-view").IndexView;
|
18
19
|
description: any;
|
19
|
-
appRegistry: unknown;
|
20
20
|
dataService: IndexesDataService | null;
|
21
21
|
serverVersion: string;
|
22
22
|
namespace: string;
|
23
23
|
regularIndexes: import("../modules/regular-indexes").State;
|
24
24
|
searchIndexes: import("../modules/search-indexes").State;
|
25
|
-
|
26
|
-
|
25
|
+
fields: import("../modules/fields").Field[];
|
26
|
+
}, import("redux").AnyAction | {
|
27
|
+
type: import("../modules/data-service").ActionTypes;
|
28
|
+
dataService: IndexesDataService;
|
29
|
+
} | {
|
30
|
+
type: string;
|
31
|
+
version: string;
|
32
|
+
}> & {
|
33
|
+
dispatch: import("redux-thunk").ThunkDispatch<any, {
|
34
|
+
localAppRegistry: AppRegistry;
|
35
|
+
globalAppRegistry: AppRegistry;
|
36
|
+
}, import("redux").AnyAction>;
|
27
37
|
};
|
28
38
|
export default configureStore;
|
29
39
|
//# sourceMappingURL=store.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AAInD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,WAAW,EACT,SAAS,GACT,aAAa,GACb,kBAAkB,GAClB,aAAa,GACb,WAAW,GACX,kBAAkB,GAClB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE;QACZ,YAAY,CAAC,EAAE,kBAAkB,CAAC;KACnC,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,WAAW,CAAC;IAC9B,iBAAiB,EAAE,WAAW,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,wBAAwB,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,cAAc,YAAa,qBAAqB;;;;;;;;;;;;;;;;;;;;;;CA2FrD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"modal-descriptions.d.ts","sourceRoot":"","sources":["../../../src/utils/modal-descriptions.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"modal-descriptions.d.ts","sourceRoot":"","sources":["../../../src/utils/modal-descriptions.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,cAAe,MAAM,gBAMrD,CAAC;AAEF,eAAO,MAAM,sBAAsB,cAAe,MAAM,gBAMvD,CAAC"}
|
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.
|
5
|
+
"version": "5.15.0",
|
6
6
|
"author": {
|
7
7
|
"name": "MongoDB Inc",
|
8
8
|
"email": "compass@mongodb.com"
|
@@ -56,12 +56,13 @@
|
|
56
56
|
"reformat": "npm run prettier -- --write . && npm run eslint . --fix"
|
57
57
|
},
|
58
58
|
"peerDependencies": {
|
59
|
-
"@mongodb-js/compass-components": "^1.
|
60
|
-
"@mongodb-js/compass-editor": "^0.
|
61
|
-
"@mongodb-js/compass-logging": "^1.1
|
62
|
-
"@mongodb-js/mongodb-
|
59
|
+
"@mongodb-js/compass-components": "^1.15.0",
|
60
|
+
"@mongodb-js/compass-editor": "^0.14.0",
|
61
|
+
"@mongodb-js/compass-logging": "^1.2.1",
|
62
|
+
"@mongodb-js/mongodb-constants": "^0.8.4",
|
63
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.12",
|
63
64
|
"bson": "^6.0.0",
|
64
|
-
"compass-preferences-model": "^2.
|
65
|
+
"compass-preferences-model": "^2.15.0",
|
65
66
|
"react": "^17.0.2"
|
66
67
|
},
|
67
68
|
"devDependencies": {
|
@@ -69,19 +70,20 @@
|
|
69
70
|
"@mongodb-js/mocha-config-compass": "^1.3.1",
|
70
71
|
"@mongodb-js/prettier-config-compass": "^1.0.1",
|
71
72
|
"@mongodb-js/tsconfig-compass": "^1.0.3",
|
72
|
-
"@mongodb-js/webpack-config-compass": "^1.1
|
73
|
+
"@mongodb-js/webpack-config-compass": "^1.2.1",
|
73
74
|
"@testing-library/react": "^12.1.4",
|
74
75
|
"@testing-library/user-event": "^13.5.0",
|
75
76
|
"chai": "^4.2.0",
|
76
77
|
"depcheck": "^1.4.1",
|
77
|
-
"
|
78
|
+
"ejson-shell-parser": "^1.2.4",
|
79
|
+
"electron": "^26.2.2",
|
78
80
|
"enzyme": "^3.11.0",
|
79
81
|
"eslint": "^7.25.0",
|
80
|
-
"hadron-app-registry": "^9.0.
|
82
|
+
"hadron-app-registry": "^9.0.11",
|
81
83
|
"lodash": "^4.17.21",
|
82
84
|
"mocha": "^10.2.0",
|
83
85
|
"mongodb": "^6.0.0",
|
84
|
-
"mongodb-data-service": "^22.
|
86
|
+
"mongodb-data-service": "^22.12.0",
|
85
87
|
"mongodb-query-parser": "^3.1.3",
|
86
88
|
"numeral": "^2.0.6",
|
87
89
|
"nyc": "^15.1.0",
|
@@ -96,12 +98,13 @@
|
|
96
98
|
"xvfb-maybe": "^0.2.1"
|
97
99
|
},
|
98
100
|
"dependencies": {
|
99
|
-
"@mongodb-js/compass-components": "^1.
|
100
|
-
"@mongodb-js/compass-editor": "^0.
|
101
|
-
"@mongodb-js/compass-logging": "^1.1
|
102
|
-
"@mongodb-js/mongodb-
|
101
|
+
"@mongodb-js/compass-components": "^1.15.0",
|
102
|
+
"@mongodb-js/compass-editor": "^0.14.0",
|
103
|
+
"@mongodb-js/compass-logging": "^1.2.1",
|
104
|
+
"@mongodb-js/mongodb-constants": "^0.8.4",
|
105
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.12",
|
103
106
|
"bson": "^6.0.0",
|
104
|
-
"compass-preferences-model": "^2.
|
107
|
+
"compass-preferences-model": "^2.15.0"
|
105
108
|
},
|
106
|
-
"gitHead": "
|
109
|
+
"gitHead": "2f5b80f5e4a015e576e9fe4b069271c92e688a05"
|
107
110
|
}
|