@mongodb-js/compass-web 0.6.0 → 0.6.1
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/connection-storage.d.ts +3 -4
- package/dist/connection-storage.d.ts.map +1 -1
- package/dist/entrypoint.d.ts +3 -7
- package/dist/entrypoint.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +254 -254
- package/dist/url-builder.d.ts +4 -0
- package/dist/url-builder.d.ts.map +1 -0
- package/package.json +27 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ConnectionStorage } from '@mongodb-js/connection-storage/provider';
|
|
3
3
|
type ClusterDescription = {
|
|
4
4
|
'@provider': string;
|
|
5
5
|
uniqueId: string;
|
|
@@ -51,11 +51,10 @@ export declare function buildConnectionInfoFromClusterDescription(driverProxyEnd
|
|
|
51
51
|
regionalBaseUrl: string;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
|
-
export declare const
|
|
55
|
-
export declare const AtlasCloudConnectionStorageProvider: ({ orgId, projectId,
|
|
54
|
+
export declare const SandboxConnectionStorageProviver: React.Provider<ConnectionStorage | null>;
|
|
55
|
+
export declare const AtlasCloudConnectionStorageProvider: ({ orgId, projectId, children, }: {
|
|
56
56
|
orgId: string;
|
|
57
57
|
projectId: string;
|
|
58
|
-
autoConnectConnectionId?: string | undefined;
|
|
59
58
|
children: React.ReactChild;
|
|
60
59
|
}) => JSX.Element;
|
|
61
60
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-storage.d.ts","sourceRoot":"","sources":["../src/connection-storage.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"connection-storage.d.ts","sourceRoot":"","sources":["../src/connection-storage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AA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ConnectionInfo } from '@mongodb-js/compass-connections/provider';
|
|
3
2
|
import type { OpenWorkspaceOptions } from '@mongodb-js/compass-workspaces';
|
|
4
3
|
import WorkspacesPlugin from '@mongodb-js/compass-workspaces';
|
|
5
4
|
import type { AllPreferences } from 'compass-preferences-model/provider';
|
|
@@ -9,17 +8,14 @@ type CompassWebProps = {
|
|
|
9
8
|
orgId: string;
|
|
10
9
|
projectId: string;
|
|
11
10
|
darkMode?: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
initialWorkspace: Extract<OpenWorkspaceOptions, {
|
|
15
|
-
type: 'Databases' | 'Collections' | 'Collection';
|
|
16
|
-
}>;
|
|
11
|
+
initialAutoconnectId?: string;
|
|
12
|
+
initialWorkspace?: OpenWorkspaceOptions;
|
|
17
13
|
onActiveWorkspaceTabChange: React.ComponentProps<typeof WorkspacesPlugin>['onActiveWorkspaceTabChange'];
|
|
18
14
|
initialPreferences?: Partial<AllPreferences>;
|
|
19
15
|
onLog?: LogFunction;
|
|
20
16
|
onDebug?: DebugFunction;
|
|
21
17
|
onTrack?: TrackFunction;
|
|
22
18
|
};
|
|
23
|
-
declare const CompassWeb: ({ appName, orgId, projectId, darkMode, initialWorkspace, onActiveWorkspaceTabChange, initialPreferences,
|
|
19
|
+
declare const CompassWeb: ({ appName, orgId, projectId, darkMode, initialAutoconnectId, initialWorkspace, onActiveWorkspaceTabChange, initialPreferences, onLog, onDebug, onTrack, }: CompassWebProps) => JSX.Element;
|
|
24
20
|
export { CompassWeb };
|
|
25
21
|
//# sourceMappingURL=entrypoint.d.ts.map
|
package/dist/entrypoint.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../src/entrypoint.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../src/entrypoint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,gBAEN,MAAM,gCAAgC,CAAC;AAmCxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AASzE,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACd,MAAM,wBAAwB,CAAC;AAoBhC,KAAK,eAAe,GAAG;IAKrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,KAAK,EAAE,MAAM,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAOnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAQ9B,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IAMxC,0BAA0B,EAAE,KAAK,CAAC,cAAc,CAC9C,OAAO,gBAAgB,CACxB,CAAC,4BAA4B,CAAC,CAAC;IAKhC,kBAAkB,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAK7C,KAAK,CAAC,EAAE,WAAW,CAAC;IAKpB,OAAO,CAAC,EAAE,aAAa,CAAC;IAIxB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAyFF,QAAA,MAAM,UAAU,8JAYb,eAAe,gBA0HjB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,YAAY,EACV,oBAAoB,EACpB,YAAY,GACb,MAAM,gCAAgC,CAAC"}
|