@mongodb-js/compass-indexes 5.21.0 → 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.
Files changed (31) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/src/components/create-index-modal/create-index-modal.d.ts +5 -2
  4. package/dist/src/components/create-index-modal/create-index-modal.d.ts.map +1 -1
  5. package/dist/src/index.d.ts +19 -3
  6. package/dist/src/index.d.ts.map +1 -1
  7. package/dist/src/modules/create-index/index.d.ts +9 -5
  8. package/dist/src/modules/create-index/index.d.ts.map +1 -1
  9. package/dist/src/modules/index.d.ts +3 -3
  10. package/dist/src/modules/regular-indexes.d.ts.map +1 -1
  11. package/dist/src/modules/search-indexes.d.ts +2 -1
  12. package/dist/src/modules/search-indexes.d.ts.map +1 -1
  13. package/dist/src/stores/create-index.d.ts +72 -54
  14. package/dist/src/stores/create-index.d.ts.map +1 -1
  15. package/dist/src/stores/drop-index.d.ts +17 -3
  16. package/dist/src/stores/drop-index.d.ts.map +1 -1
  17. package/package.json +18 -19
  18. package/dist/src/components/drop-index-modal/index.d.ts +0 -22
  19. package/dist/src/components/drop-index-modal/index.d.ts.map +0 -1
  20. package/dist/src/create-index-plugin.d.ts +0 -14
  21. package/dist/src/create-index-plugin.d.ts.map +0 -1
  22. package/dist/src/drop-index-plugin.d.ts +0 -14
  23. package/dist/src/drop-index-plugin.d.ts.map +0 -1
  24. package/dist/src/modules/drop-index/confirm-name.d.ts +0 -9
  25. package/dist/src/modules/drop-index/confirm-name.d.ts.map +0 -1
  26. package/dist/src/modules/drop-index/error.d.ts +0 -19
  27. package/dist/src/modules/drop-index/error.d.ts.map +0 -1
  28. package/dist/src/modules/drop-index/index.d.ts +0 -25
  29. package/dist/src/modules/drop-index/index.d.ts.map +0 -1
  30. package/dist/src/modules/drop-index/name.d.ts +0 -9
  31. package/dist/src/modules/drop-index/name.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CreateIndexForm } from '../create-index-form/create-index-form';
3
- declare function CreateIndexModal({ isVisible, namespace, error, clearError, inProgress, createIndex, closeCreateIndexModal, ...props }: React.ComponentProps<typeof CreateIndexForm> & {
3
+ type CreateIndexModalProps = React.ComponentProps<typeof CreateIndexForm> & {
4
4
  isVisible: boolean;
5
5
  namespace: string;
6
6
  error: string | null;
@@ -8,8 +8,11 @@ declare function CreateIndexModal({ isVisible, namespace, error, clearError, inP
8
8
  inProgress: boolean;
9
9
  createIndex: () => void;
10
10
  closeCreateIndexModal: () => void;
11
- }): JSX.Element;
11
+ };
12
+ declare function CreateIndexModal({ isVisible, namespace, error, clearError, inProgress, createIndex, closeCreateIndexModal, ...props }: CreateIndexModalProps): JSX.Element;
12
13
  declare const _default: import("react-redux").ConnectedComponent<typeof CreateIndexModal, {
14
+ namespace: string;
15
+ serverVersion: string;
13
16
  context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
14
17
  store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
15
18
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-index-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-modal/create-index-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAmB3C,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAIzE,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,SAAS,EACT,KAAK,EACL,UAAU,EACV,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,GAAG;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,qBAAqB,EAAE,MAAM,IAAI,CAAC;CACnC,eA+CA;;;;;AA8BD,wBAAgE"}
1
+ {"version":3,"file":"create-index-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/create-index-modal/create-index-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAmB3C,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAKzE,KAAK,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,GAAG;IAC1E,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,qBAAqB,EAAE,MAAM,IAAI,CAAC;CACnC,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,SAAS,EACT,KAAK,EACL,UAAU,EACV,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,GAAG,KAAK,EACT,EAAE,qBAAqB,eA+CvB;;;;;;;AAqCD,wBAAgE"}
@@ -1,6 +1,7 @@
1
- import type AppRegistry from 'hadron-app-registry';
1
+ /// <reference types="react" />
2
2
  import type { CollectionTabPluginMetadata } from '@mongodb-js/compass-collection';
3
3
  import type { IndexesDataService } from './stores/store';
4
+ import type { DataServiceLocator } from 'mongodb-data-service/provider';
4
5
  import type { MongoDBInstance } from '@mongodb-js/compass-app-stores/provider';
5
6
  import type { LoggerAndTelemetry } from '@mongodb-js/compass-logging';
6
7
  export declare const CompassIndexesHadronPlugin: import("hadron-app-registry").HadronPluginComponent<CollectionTabPluginMetadata, {
@@ -16,8 +17,23 @@ export declare const CompassIndexesPlugin: {
16
17
  logger: () => LoggerAndTelemetry;
17
18
  }>;
18
19
  };
19
- declare function activate(appRegistry: AppRegistry): void;
20
- declare function deactivate(appRegistry: AppRegistry): void;
20
+ export declare const CreateIndexPlugin: import("hadron-app-registry").HadronPluginComponent<{
21
+ namespace: string;
22
+ serverVersion: string;
23
+ context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
24
+ store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
25
+ }, {
26
+ dataService: DataServiceLocator<"createIndex">;
27
+ logger: () => LoggerAndTelemetry;
28
+ }>;
29
+ export declare const DropIndexPlugin: import("hadron-app-registry").HadronPluginComponent<{
30
+ namespace: string;
31
+ }, {
32
+ dataService: DataServiceLocator<"dropIndex">;
33
+ logger: () => LoggerAndTelemetry;
34
+ }>;
35
+ declare function activate(): void;
36
+ declare function deactivate(): void;
21
37
  export { activate, deactivate };
22
38
  export { default as metadata } from '../package.json';
23
39
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AAOnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAQzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAE/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,eAAO,MAAM,0BAA0B;iBAGtB,MAAM,kBAAkB;cAC3B,MAAM,eAAe;YACvB,MAAM,kBAAkB;EAcnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;qBAlBhB,MAAM,kBAAkB;kBAC3B,MAAM,eAAe;gBACvB,MAAM,kBAAkB;;CAmBnC,CAAC;AA4BF,iBAAS,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAGhD;AAMD,iBAAS,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAGlD;AAED,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAMzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAE/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,eAAO,MAAM,0BAA0B;iBAGtB,MAAM,kBAAkB;cAC3B,MAAM,eAAe;YACvB,MAAM,kBAAkB;EAcnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;qBAlBhB,MAAM,kBAAkB;kBAC3B,MAAM,eAAe;gBACvB,MAAM,kBAAkB;;CAmBnC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;EAU7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;EAU3B,CAAC;AAEF,iBAAS,QAAQ,IAAI,IAAI,CAExB;AAED,iBAAS,UAAU,IAAI,IAAI,CAE1B;AAED,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,8 +1,9 @@
1
- import type { Dispatch } from 'redux';
1
+ import type { Action, AnyAction, Dispatch } from 'redux';
2
2
  import type { IndexField } from '../create-index/fields';
3
+ import type { ThunkAction } from 'redux-thunk';
4
+ import type { CreateIndexPluginServices } from '../../stores/create-index';
5
+ type CreateIndexThunkAction<R, A extends Action = AnyAction> = ThunkAction<R, RootState, CreateIndexPluginServices, A>;
3
6
  declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
4
- dataService: import("../../stores/store").IndexesDataService | null;
5
- appRegistry: unknown;
6
7
  namespace: string;
7
8
  serverVersion: string;
8
9
  inProgress: any;
@@ -52,12 +53,15 @@ declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
52
53
  value: string;
53
54
  };
54
55
  };
55
- }>, import("redux").Action<any>>;
56
+ }>, AnyAction | {
57
+ type: string;
58
+ version: string;
59
+ }>;
56
60
  export type RootState = ReturnType<typeof reducer>;
57
61
  export type CreateIndexSpec = {
58
62
  [key: string]: string | number;
59
63
  };
60
64
  export default reducer;
61
65
  export declare const closeCreateIndexModal: () => (dispatch: Dispatch) => void;
62
- export declare const createIndex: () => (dispatch: Dispatch, getState: () => RootState) => Promise<void>;
66
+ export declare const createIndex: () => CreateIndexThunkAction<Promise<void>>;
63
67
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-index/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAatC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAgBzD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAoBX,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,eAAe,OAAO,CAAC;AAEvB,eAAO,MAAM,qBAAqB,mBACd,QAAQ,SAI3B,CAAC;AA2CF,eAAO,MAAM,WAAW,mBACE,QAAQ,YAAY,MAAM,SAAS,kBAiK5D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/create-index/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAQzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAE3E,KAAK,sBAAsB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,SAAS,IAAI,WAAW,CACxE,CAAC,EACD,SAAS,EACT,yBAAyB,EACzB,CAAC,CACF,CAAC;AAKF,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBX,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,eAAe,OAAO,CAAC;AAEvB,eAAO,MAAM,qBAAqB,mBACd,QAAQ,SAI3B,CAAC;AA2CF,eAAO,MAAM,WAAW,QAAO,uBAAuB,QAAQ,IAAI,CAAC,CA4JlE,CAAC"}
@@ -14,11 +14,11 @@ declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
14
14
  searchIndexes: import("./search-indexes").State;
15
15
  fields: import("./fields").Field[];
16
16
  }>, AnyAction | {
17
- type: import("./data-service").ActionTypes;
18
- dataService: import("../stores/store").IndexesDataService;
19
- } | {
20
17
  type: string;
21
18
  version: string;
19
+ } | {
20
+ type: import("./data-service").ActionTypes;
21
+ dataService: import("../stores/store").IndexesDataService;
22
22
  }>;
23
23
  export type SortDirection = 'asc' | 'desc';
24
24
  export type RootState = ReturnType<typeof reducer>;
@@ -1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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,CAkB/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"}
@@ -84,8 +84,9 @@ export declare const updateIndex: (indexName: string, indexDefinition: Document)
84
84
  export declare const refreshSearchIndexes: () => IndexesThunkAction<Promise<void>>;
85
85
  export declare const pollSearchIndexes: () => IndexesThunkAction<void>;
86
86
  export declare const sortSearchIndexes: (column: SearchSortColumn, direction: SortDirection) => IndexesThunkAction<void, SearchIndexesSortedAction>;
87
- export declare const showConfirmation: (props: Partial<Pick<import("@leafygreen-ui/confirmation-modal/dist/ConfirmationModal/types").ConfirmationModalProps, "title" | "buttonText" | "variant" | "requiredInputText">> & {
87
+ export declare const showConfirmation: (props: Partial<Pick<import("@leafygreen-ui/confirmation-modal/dist/ConfirmationModal/types").ConfirmationModalProps, "title" | "variant" | "buttonText" | "requiredInputText">> & {
88
88
  description?: import("react").ReactNode;
89
+ signal?: AbortSignal | undefined;
89
90
  'data-testid'?: string | undefined;
90
91
  }) => Promise<boolean>;
91
92
  export declare const dropSearchIndex: (name: string) => IndexesThunkAction<Promise<void>>;
@@ -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;AAOvC,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;AAGxD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE9D,QAAA,MAAM,iBAAiB;;;CAGb,CAAC;AAEX,oBAAY,qBAAqB;IAI/B,aAAa,kBAAkB;IAI/B,SAAS,cAAc;IAIvB,KAAK,UAAU;IAIf,QAAQ,aAAa;IAIrB,UAAU,eAAe;IAIzB,OAAO,YAAY;IAInB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAWrE,oBAAY,WAAW;IACrB,SAAS,qCAAqC;IAC9C,gBAAgB,4CAA4C;IAC5D,mBAAmB,+CAA+C;IAClE,QAAQ,oCAAoC;IAG5C,0BAA0B,sDAAsD;IAChF,wBAAwB,oDAAoD;IAC5E,uBAAuB,mDAAmD;IAC1E,0BAA0B,oDAAoD;IAC9E,0BAA0B,sDAAsD;IAGhF,0BAA0B,sDAAsD;IAChF,wBAAwB,oDAAoD;IAC5E,uBAAuB,mDAAmD;IAC1E,0BAA0B,oDAAoD;IAC9E,0BAA0B,sDAAsD;CACjF;AAOD,KAAK,gCAAgC,GAAG;IACtC,IAAI,EAAE,WAAW,CAAC,0BAA0B,CAAC;CAC9C,CAAC;AAeF,KAAK,gCAAgC,GAAG;IACtC,IAAI,EAA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AmB,QAAQ,IAAI,CAAC,CAyClC,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM;;;;;;;;IAYzD"}
@@ -1,58 +1,76 @@
1
- export function setDataProvider(store: Object, error: Object, provider: Object): void;
2
- export default configureStore;
3
- declare function configureStore(options?: {}): import("redux").Store<import("redux").EmptyObject & {
4
- dataService: import("./store").IndexesDataService | null;
5
- appRegistry: unknown;
6
- namespace: string;
7
- serverVersion: string;
8
- inProgress: any;
9
- isVisible: any;
10
- fields: import("../modules/create-index/fields").IndexField[];
11
- schemaFields: string[];
12
- error: string | null;
13
- options: {
14
- name: {
15
- enabled: boolean;
16
- } & {
17
- value: string;
18
- };
19
- unique: {
20
- enabled: boolean;
21
- } & {
22
- value: boolean;
23
- };
24
- sparse: {
25
- enabled: boolean;
26
- } & {
27
- value: boolean;
28
- };
29
- collation: {
30
- enabled: boolean;
31
- } & {
32
- value: string;
33
- };
34
- expireAfterSeconds: {
35
- enabled: boolean;
36
- } & {
37
- value: string;
38
- };
39
- partialFilterExpression: {
40
- enabled: boolean;
41
- } & {
42
- value: string;
43
- };
44
- wildcardProjection: {
45
- enabled: boolean;
46
- } & {
47
- value: string;
48
- };
49
- columnstoreProjection: {
50
- enabled: boolean;
51
- } & {
52
- value: string;
1
+ import type { CollectionTabPluginMetadata } from '@mongodb-js/compass-collection';
2
+ import type { ActivateHelpers } from 'hadron-app-registry';
3
+ import type AppRegistry from 'hadron-app-registry';
4
+ import type { DataService } from 'mongodb-data-service';
5
+ import type { LoggerAndTelemetry } from '@mongodb-js/compass-logging';
6
+ type CreateIndexPluginOptions = Pick<CollectionTabPluginMetadata, 'namespace' | 'serverVersion'>;
7
+ export type CreateIndexPluginServices = {
8
+ localAppRegistry: AppRegistry;
9
+ dataService: Pick<DataService, 'createIndex'>;
10
+ logger: LoggerAndTelemetry;
11
+ };
12
+ export declare function activatePlugin({ namespace, serverVersion }: CreateIndexPluginOptions, { localAppRegistry, dataService, logger }: CreateIndexPluginServices, { on, cleanup }: ActivateHelpers): {
13
+ store: import("redux").Store<import("redux").EmptyObject & {
14
+ namespace: string;
15
+ serverVersion: string;
16
+ inProgress: any;
17
+ isVisible: any;
18
+ fields: import("../modules/create-index/fields").IndexField[];
19
+ schemaFields: string[];
20
+ error: string | null;
21
+ options: {
22
+ name: {
23
+ enabled: boolean;
24
+ } & {
25
+ value: string;
26
+ };
27
+ unique: {
28
+ enabled: boolean;
29
+ } & {
30
+ value: boolean;
31
+ };
32
+ sparse: {
33
+ enabled: boolean;
34
+ } & {
35
+ value: boolean;
36
+ };
37
+ collation: {
38
+ enabled: boolean;
39
+ } & {
40
+ value: string;
41
+ };
42
+ expireAfterSeconds: {
43
+ enabled: boolean;
44
+ } & {
45
+ value: string;
46
+ };
47
+ partialFilterExpression: {
48
+ enabled: boolean;
49
+ } & {
50
+ value: string;
51
+ };
52
+ wildcardProjection: {
53
+ enabled: boolean;
54
+ } & {
55
+ value: string;
56
+ };
57
+ columnstoreProjection: {
58
+ enabled: boolean;
59
+ } & {
60
+ value: string;
61
+ };
53
62
  };
63
+ }, import("redux").AnyAction | {
64
+ type: string;
65
+ version: string;
66
+ }> & {
67
+ dispatch: import("redux-thunk").ThunkDispatch<any, {
68
+ localAppRegistry: AppRegistry;
69
+ dataService: Pick<DataService, "createIndex">;
70
+ logger: LoggerAndTelemetry;
71
+ }, import("redux").AnyAction>;
54
72
  };
55
- }, import("redux").Action<any>> & {
56
- dispatch: any;
73
+ deactivate: () => void;
57
74
  };
75
+ export {};
58
76
  //# sourceMappingURL=create-index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"create-index.d.ts","sourceRoot":"","sources":["../../../src/stores/create-index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,KAAK,wBAAwB,GAAG,IAAI,CAClC,2BAA2B,EAC3B,WAAW,GAAG,eAAe,CAC9B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,gBAAgB,EAAE,WAAW,CAAC;IAC9B,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;IAC9C,MAAM,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,wBAAwB,EACtD,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,yBAAyB,EACpE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBjC"}
@@ -1,4 +1,18 @@
1
- export function setDataProvider(store: Object, error: Object, provider: Object): void;
2
- export default configureStore;
3
- declare function configureStore(options?: {}): any;
1
+ import React from 'react';
2
+ import type { ActivateHelpers, AppRegistry } from 'hadron-app-registry';
3
+ import type { CollectionTabPluginMetadata } from '@mongodb-js/compass-collection';
4
+ import type { DataService } from 'mongodb-data-service/provider';
5
+ import type { LoggerAndTelemetry } from '@mongodb-js/compass-logging';
6
+ type DropIndexInitialProps = Pick<CollectionTabPluginMetadata, 'namespace'>;
7
+ type DropIndexServices = {
8
+ localAppRegistry: AppRegistry;
9
+ dataService: Pick<DataService, 'dropIndex'>;
10
+ logger: LoggerAndTelemetry;
11
+ };
12
+ export declare function activatePlugin({ namespace }: DropIndexInitialProps, { localAppRegistry, dataService, logger: { track } }: DropIndexServices, { on, cleanup, signal }: ActivateHelpers): {
13
+ store: {};
14
+ deactivate: () => void;
15
+ };
16
+ export declare const DropIndexComponent: React.FunctionComponent;
17
+ export {};
4
18
  //# sourceMappingURL=drop-index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drop-index.d.ts","sourceRoot":"","sources":["../../../src/stores/drop-index.js"],"names":[],"mappings":"AAoBO,uCAJI,MAAM,SACN,MAAM,YACN,MAAM,QAQhB;;AAED,mDAqCC"}
1
+ {"version":3,"file":"drop-index.d.ts","sourceRoot":"","sources":["../../../src/stores/drop-index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,KAAK,qBAAqB,GAAG,IAAI,CAAC,2BAA2B,EAAE,WAAW,CAAC,CAAC;AAE5E,KAAK,iBAAiB,GAAG;IACvB,gBAAgB,EAAE,WAAW,CAAC;IAC9B,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC5C,MAAM,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,EAAE,SAAS,EAAE,EAAE,qBAAqB,EACpC,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,iBAAiB,EACvE,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,eAAe;;;EA0CzC;AAMD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAMtC,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.21.0",
5
+ "version": "5.22.0",
6
6
  "author": {
7
7
  "name": "MongoDB Inc",
8
8
  "email": "compass@mongodb.com"
@@ -56,26 +56,26 @@
56
56
  "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
57
57
  },
58
58
  "peerDependencies": {
59
- "@mongodb-js/compass-app-stores": "^7.8.0",
60
- "@mongodb-js/compass-components": "^1.20.3",
61
- "@mongodb-js/compass-editor": "^0.19.3",
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
62
  "@mongodb-js/compass-logging": "^1.2.9",
63
- "@mongodb-js/compass-workspaces": "^0.3.0",
63
+ "@mongodb-js/compass-workspaces": "^0.4.0",
64
64
  "@mongodb-js/mongodb-constants": "^0.8.7",
65
- "@mongodb-js/mongodb-redux-common": "^2.0.18",
65
+ "@mongodb-js/mongodb-redux-common": "^2.0.19",
66
66
  "bson": "^6.2.0",
67
67
  "compass-preferences-model": "^2.17.0",
68
- "hadron-app-registry": "^9.1.2",
69
- "mongodb-data-service": "^22.17.0",
68
+ "hadron-app-registry": "^9.1.3",
69
+ "mongodb-data-service": "^22.17.1",
70
70
  "react": "^17.0.2"
71
71
  },
72
72
  "devDependencies": {
73
- "@mongodb-js/compass-collection": "^4.21.0",
73
+ "@mongodb-js/compass-collection": "^4.22.0",
74
74
  "@mongodb-js/eslint-config-compass": "^1.0.13",
75
75
  "@mongodb-js/mocha-config-compass": "^1.3.4",
76
76
  "@mongodb-js/prettier-config-compass": "^1.0.1",
77
77
  "@mongodb-js/tsconfig-compass": "^1.0.3",
78
- "@mongodb-js/webpack-config-compass": "^1.2.8",
78
+ "@mongodb-js/webpack-config-compass": "^1.3.0",
79
79
  "@testing-library/react": "^12.1.4",
80
80
  "@testing-library/user-event": "^13.5.0",
81
81
  "chai": "^4.2.0",
@@ -89,7 +89,6 @@
89
89
  "mongodb-query-parser": "^4.0.0",
90
90
  "numeral": "^2.0.6",
91
91
  "nyc": "^15.1.0",
92
- "prop-types": "^15.7.2",
93
92
  "react": "^17.0.2",
94
93
  "react-dom": "^17.0.2",
95
94
  "react-redux": "^8.1.3",
@@ -100,17 +99,17 @@
100
99
  "xvfb-maybe": "^0.2.1"
101
100
  },
102
101
  "dependencies": {
103
- "@mongodb-js/compass-app-stores": "^7.8.0",
104
- "@mongodb-js/compass-components": "^1.20.3",
105
- "@mongodb-js/compass-editor": "^0.19.3",
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",
106
105
  "@mongodb-js/compass-logging": "^1.2.9",
107
- "@mongodb-js/compass-workspaces": "^0.3.0",
106
+ "@mongodb-js/compass-workspaces": "^0.4.0",
108
107
  "@mongodb-js/mongodb-constants": "^0.8.7",
109
- "@mongodb-js/mongodb-redux-common": "^2.0.18",
108
+ "@mongodb-js/mongodb-redux-common": "^2.0.19",
110
109
  "bson": "^6.2.0",
111
110
  "compass-preferences-model": "^2.17.0",
112
- "hadron-app-registry": "^9.1.2",
113
- "mongodb-data-service": "^22.17.0"
111
+ "hadron-app-registry": "^9.1.3",
112
+ "mongodb-data-service": "^22.17.1"
114
113
  },
115
- "gitHead": "e03c6bc49cec52b05d2bfda2121ffe62ddf17680"
114
+ "gitHead": "13985bba4e0cf9b03e1ef16f7fed023941ccd567"
116
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"}