@mongodb-js/compass-indexes 5.20.3 → 5.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.
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/components/create-index-modal/create-index-modal.d.ts +5 -2
- package/dist/src/components/create-index-modal/create-index-modal.d.ts.map +1 -1
- package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts +2 -2
- package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts.map +1 -1
- package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts +2 -2
- package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts.map +1 -1
- package/dist/src/components/search-indexes-table/search-indexes-table.d.ts +3 -3
- package/dist/src/components/search-indexes-table/search-indexes-table.d.ts.map +1 -1
- package/dist/src/index.d.ts +37 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/modules/create-index/index.d.ts +9 -5
- package/dist/src/modules/create-index/index.d.ts.map +1 -1
- package/dist/src/modules/index.d.ts +8 -6
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/regular-indexes.d.ts.map +1 -1
- package/dist/src/modules/search-indexes.d.ts +11 -2
- package/dist/src/modules/search-indexes.d.ts.map +1 -1
- package/dist/src/stores/create-index.d.ts +72 -54
- package/dist/src/stores/create-index.d.ts.map +1 -1
- package/dist/src/stores/drop-index.d.ts +17 -3
- package/dist/src/stores/drop-index.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +21 -30
- package/dist/src/stores/store.d.ts.map +1 -1
- package/package.json +24 -19
- package/dist/src/components/drop-index-modal/index.d.ts +0 -22
- package/dist/src/components/drop-index-modal/index.d.ts.map +0 -1
- package/dist/src/create-index-plugin.d.ts +0 -14
- package/dist/src/create-index-plugin.d.ts.map +0 -1
- package/dist/src/drop-index-plugin.d.ts +0 -14
- package/dist/src/drop-index-plugin.d.ts.map +0 -1
- package/dist/src/modules/drop-index/confirm-name.d.ts +0 -9
- package/dist/src/modules/drop-index/confirm-name.d.ts.map +0 -1
- package/dist/src/modules/drop-index/error.d.ts +0 -19
- package/dist/src/modules/drop-index/error.d.ts.map +0 -1
- package/dist/src/modules/drop-index/index.d.ts +0 -25
- package/dist/src/modules/drop-index/index.d.ts.map +0 -1
- package/dist/src/modules/drop-index/name.d.ts +0 -9
- package/dist/src/modules/drop-index/name.d.ts.map +0 -1
- package/dist/src/plugin.d.ts +0 -14
- package/dist/src/plugin.d.ts.map +0 -1
- package/dist/src/stores/index.d.ts +0 -3
- package/dist/src/stores/index.d.ts.map +0 -1
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.22.0",
|
6
6
|
"author": {
|
7
7
|
"name": "MongoDB Inc",
|
8
8
|
"email": "compass@mongodb.com"
|
@@ -56,38 +56,39 @@
|
|
56
56
|
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
|
57
57
|
},
|
58
58
|
"peerDependencies": {
|
59
|
-
"@mongodb-js/compass-
|
60
|
-
"@mongodb-js/compass-
|
61
|
-
"@mongodb-js/compass-
|
59
|
+
"@mongodb-js/compass-app-stores": "^7.9.0",
|
60
|
+
"@mongodb-js/compass-components": "^1.21.0",
|
61
|
+
"@mongodb-js/compass-editor": "^0.20.0",
|
62
|
+
"@mongodb-js/compass-logging": "^1.2.9",
|
63
|
+
"@mongodb-js/compass-workspaces": "^0.4.0",
|
62
64
|
"@mongodb-js/mongodb-constants": "^0.8.7",
|
63
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
65
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.19",
|
64
66
|
"bson": "^6.2.0",
|
65
|
-
"compass-preferences-model": "^2.
|
67
|
+
"compass-preferences-model": "^2.17.0",
|
68
|
+
"hadron-app-registry": "^9.1.3",
|
69
|
+
"mongodb-data-service": "^22.17.1",
|
66
70
|
"react": "^17.0.2"
|
67
71
|
},
|
68
72
|
"devDependencies": {
|
69
|
-
"@mongodb-js/
|
70
|
-
"@mongodb-js/
|
73
|
+
"@mongodb-js/compass-collection": "^4.22.0",
|
74
|
+
"@mongodb-js/eslint-config-compass": "^1.0.13",
|
75
|
+
"@mongodb-js/mocha-config-compass": "^1.3.4",
|
71
76
|
"@mongodb-js/prettier-config-compass": "^1.0.1",
|
72
77
|
"@mongodb-js/tsconfig-compass": "^1.0.3",
|
73
|
-
"@mongodb-js/webpack-config-compass": "^1.
|
78
|
+
"@mongodb-js/webpack-config-compass": "^1.3.0",
|
74
79
|
"@testing-library/react": "^12.1.4",
|
75
80
|
"@testing-library/user-event": "^13.5.0",
|
76
81
|
"chai": "^4.2.0",
|
77
82
|
"depcheck": "^1.4.1",
|
78
83
|
"ejson-shell-parser": "^2.0.0",
|
79
84
|
"electron": "^25.9.8",
|
80
|
-
"enzyme": "^3.11.0",
|
81
85
|
"eslint": "^7.25.0",
|
82
|
-
"hadron-app-registry": "^9.1.1",
|
83
86
|
"lodash": "^4.17.21",
|
84
87
|
"mocha": "^10.2.0",
|
85
88
|
"mongodb": "^6.3.0",
|
86
|
-
"mongodb-data-service": "^22.16.2",
|
87
89
|
"mongodb-query-parser": "^4.0.0",
|
88
90
|
"numeral": "^2.0.6",
|
89
91
|
"nyc": "^15.1.0",
|
90
|
-
"prop-types": "^15.7.2",
|
91
92
|
"react": "^17.0.2",
|
92
93
|
"react-dom": "^17.0.2",
|
93
94
|
"react-redux": "^8.1.3",
|
@@ -98,13 +99,17 @@
|
|
98
99
|
"xvfb-maybe": "^0.2.1"
|
99
100
|
},
|
100
101
|
"dependencies": {
|
101
|
-
"@mongodb-js/compass-
|
102
|
-
"@mongodb-js/compass-
|
103
|
-
"@mongodb-js/compass-
|
102
|
+
"@mongodb-js/compass-app-stores": "^7.9.0",
|
103
|
+
"@mongodb-js/compass-components": "^1.21.0",
|
104
|
+
"@mongodb-js/compass-editor": "^0.20.0",
|
105
|
+
"@mongodb-js/compass-logging": "^1.2.9",
|
106
|
+
"@mongodb-js/compass-workspaces": "^0.4.0",
|
104
107
|
"@mongodb-js/mongodb-constants": "^0.8.7",
|
105
|
-
"@mongodb-js/mongodb-redux-common": "^2.0.
|
108
|
+
"@mongodb-js/mongodb-redux-common": "^2.0.19",
|
106
109
|
"bson": "^6.2.0",
|
107
|
-
"compass-preferences-model": "^2.
|
110
|
+
"compass-preferences-model": "^2.17.0",
|
111
|
+
"hadron-app-registry": "^9.1.3",
|
112
|
+
"mongodb-data-service": "^22.17.1"
|
108
113
|
},
|
109
|
-
"gitHead": "
|
114
|
+
"gitHead": "13985bba4e0cf9b03e1ef16f7fed023941ccd567"
|
110
115
|
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export type DropIndexFormProps = {
|
3
|
-
isVisible: boolean;
|
4
|
-
inProgress: boolean;
|
5
|
-
error?: string | null;
|
6
|
-
name: string;
|
7
|
-
confirmName: string;
|
8
|
-
toggleIsVisible: (isVisible: boolean) => void;
|
9
|
-
toggleInProgress: () => void;
|
10
|
-
changeConfirmName: (name: string) => void;
|
11
|
-
resetForm: () => void;
|
12
|
-
dropIndex: (name: string) => void;
|
13
|
-
clearError: () => void;
|
14
|
-
};
|
15
|
-
export declare function DropIndexModal({ isVisible, inProgress, error, name, confirmName, toggleIsVisible, changeConfirmName, resetForm, dropIndex, clearError, }: DropIndexFormProps): JSX.Element;
|
16
|
-
declare const _default: import("react-redux").ConnectedComponent<typeof DropIndexModal, {
|
17
|
-
toggleInProgress: () => void;
|
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=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drop-index-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6C1B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAKF,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,UAAU,EACV,KAAK,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,UAAU,GACX,EAAE,kBAAkB,eA2FpB;;;;;;AAyBD,wBAA8D"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
export default CreateIndexPlugin;
|
2
|
-
declare class CreateIndexPlugin 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-index-plugin.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"create-index-plugin.d.ts","sourceRoot":"","sources":["../../src/create-index-plugin.jsx"],"names":[],"mappings":";AAKA;IACE,2BAAyC;IACzC;;MAEE;IAiB+vlB,wBAA8C;IAAA,sCAAyJ;IAVx8lB,UAFa,eAAe,CAQ3B;CACF;kBAvBgC,OAAO;0BAAP,OAAO;sBAElB,YAAY"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
export default DropIndexPlugin;
|
2
|
-
declare class DropIndexPlugin 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=drop-index-plugin.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"drop-index-plugin.d.ts","sourceRoot":"","sources":["../../src/drop-index-plugin.jsx"],"names":[],"mappings":";AAKA;IACE,2BAAuC;IACvC;;MAEE;IAiB2wlB,wBAA8C;IAAA,sCAAyJ;IAVp9lB,UAFa,eAAe,CAQ3B;CACF;kBAvBgC,OAAO;0BAAP,OAAO;sBAElB,YAAY"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import type { AnyAction } from 'redux';
|
2
|
-
export declare const CHANGE_CONFIRM_NAME = "indexes/drop-index/confirm-name/CHANGE_CONFIRM_NAME";
|
3
|
-
export declare const INITIAL_STATE = "";
|
4
|
-
export default function reducer(state: string | undefined, action: AnyAction): string;
|
5
|
-
export declare const changeConfirmName: (name: string) => {
|
6
|
-
type: string;
|
7
|
-
name: string;
|
8
|
-
};
|
9
|
-
//# sourceMappingURL=confirm-name.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"confirm-name.d.ts","sourceRoot":"","sources":["../../../../src/modules/drop-index/confirm-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,eAAO,MAAM,mBAAmB,wDACuB,CAAC;AAKxD,eAAO,MAAM,aAAa,KAAK,CAAC;AAUhC,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,oBAAgB,EACrB,MAAM,EAAE,SAAS,GAChB,MAAM,CAKR;AASD,eAAO,MAAM,iBAAiB,SAAU,MAAM;;;CAG5C,CAAC"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import type { AnyAction } from 'redux';
|
2
|
-
export declare enum ActionTypes {
|
3
|
-
HandleError = "indexes/create-index/HandleError",
|
4
|
-
ClearError = "indexes/create-index/ClearError"
|
5
|
-
}
|
6
|
-
type HandleErrorAction = {
|
7
|
-
type: ActionTypes.HandleError;
|
8
|
-
error: string;
|
9
|
-
};
|
10
|
-
type ClearErrorAction = {
|
11
|
-
type: ActionTypes.ClearError;
|
12
|
-
};
|
13
|
-
type State = string | null;
|
14
|
-
export declare const INITIAL_STATE: State;
|
15
|
-
export default function reducer(state: State | undefined, action: AnyAction): State;
|
16
|
-
export declare const handleError: (error: string) => HandleErrorAction;
|
17
|
-
export declare const clearError: () => ClearErrorAction;
|
18
|
-
export {};
|
19
|
-
//# sourceMappingURL=error.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../src/modules/drop-index/error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,oBAAY,WAAW;IACrB,WAAW,qCAAqC;IAChD,UAAU,oCAAoC;CAC/C;AAED,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,WAAW,CAAC,WAAW,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC;CAC9B,CAAC;AAEF,KAAK,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;AAE3B,eAAO,MAAM,aAAa,EAAE,KAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,mBAAuB,EAC5B,MAAM,EAAE,SAAS,SAYlB;AAED,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,iBAG1C,CAAC;AAEH,eAAO,MAAM,UAAU,QAAO,gBAE5B,CAAC"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import type { AnyAction, Dispatch } from 'redux';
|
2
|
-
declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
|
3
|
-
dataService: import("../../stores/store").IndexesDataService | null;
|
4
|
-
appRegistry: unknown;
|
5
|
-
isVisible: any;
|
6
|
-
inProgress: any;
|
7
|
-
error: string | null;
|
8
|
-
name: string;
|
9
|
-
confirmName: string;
|
10
|
-
namespace: string;
|
11
|
-
}>, import("redux").Action<any>>;
|
12
|
-
export type RootState = ReturnType<typeof reducer>;
|
13
|
-
declare const rootReducer: (state: RootState, action: AnyAction) => import("redux").CombinedState<{
|
14
|
-
dataService: import("../../stores/store").IndexesDataService | null;
|
15
|
-
appRegistry: unknown;
|
16
|
-
isVisible: any;
|
17
|
-
inProgress: any;
|
18
|
-
error: string | null;
|
19
|
-
name: string;
|
20
|
-
confirmName: string;
|
21
|
-
namespace: string;
|
22
|
-
}>;
|
23
|
-
export default rootReducer;
|
24
|
-
export declare const dropIndex: (indexName: string) => (dispatch: Dispatch, getState: () => RootState) => Promise<void>;
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/drop-index/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAgCjD,QAAA,MAAM,OAAO;;;;;;;;;gCASX,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAUnD,QAAA,MAAM,WAAW,UAAW,SAAS,UAAU,SAAS;;;;;;;;;EAYvD,CAAC;AAEF,eAAe,WAAW,CAAC;AAQ3B,eAAO,MAAM,SAAS,cAAe,MAAM,gBACjB,QAAQ,YAAY,MAAM,SAAS,kBAoB5D,CAAC"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import type { AnyAction } from 'redux';
|
2
|
-
export declare const NAME_CHANGED = "indexes/drop-index/name/NAME_CHANGED";
|
3
|
-
export declare const INITIAL_STATE = "";
|
4
|
-
export default function reducer(state: string | undefined, action: AnyAction): string;
|
5
|
-
export declare const nameChanged: (name: string) => {
|
6
|
-
type: string;
|
7
|
-
name: string;
|
8
|
-
};
|
9
|
-
//# sourceMappingURL=name.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../../src/modules/drop-index/name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,eAAO,MAAM,YAAY,yCAAyC,CAAC;AAKnE,eAAO,MAAM,aAAa,KAAK,CAAC;AAUhC,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,oBAAgB,EACrB,MAAM,EAAE,SAAS,GAChB,MAAM,CAKR;AASD,eAAO,MAAM,WAAW,SAAU,MAAM;;;CAGtC,CAAC"}
|
package/dist/src/plugin.d.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
export default Plugin;
|
2
|
-
declare class Plugin 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=plugin.d.ts.map
|
package/dist/src/plugin.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stores/index.js"],"names":[],"mappings":";2BAA2B,SAAS"}
|