@mongodb-js/compass-web 0.2.5 → 0.3.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.
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import WorkspacesPlugin from '@mongodb-js/compass-workspaces';
3
+ import type { AllPreferences } from 'compass-preferences-model/provider';
4
+ import type { ConnectionInfo } from '@mongodb-js/connection-storage/provider';
5
+ type CompassWorkspaceProps = Pick<React.ComponentProps<typeof WorkspacesPlugin>, 'initialWorkspaceTabs' | 'onActiveWorkspaceTabChange'> & {
6
+ connectionInfo: ConnectionInfo;
7
+ };
8
+ type CompassWebProps = {
9
+ appName?: string;
10
+ darkMode?: boolean;
11
+ stackedElementsZIndex?: number;
12
+ onAutoconnectInfoRequest: () => Promise<ConnectionInfo>;
13
+ renderConnecting?: (connectionInfo: ConnectionInfo) => React.ReactNode;
14
+ renderError?: (connectionInfo: ConnectionInfo | null, err: any) => React.ReactNode;
15
+ initialPreferences?: Partial<AllPreferences>;
16
+ } & Pick<CompassWorkspaceProps, 'initialWorkspaceTabs' | 'onActiveWorkspaceTabChange'>;
17
+ declare const CompassWeb: ({ appName, darkMode, initialWorkspaceTabs, onActiveWorkspaceTabChange, initialPreferences, stackedElementsZIndex, onAutoconnectInfoRequest, renderConnecting, renderError, __TEST_MONGODB_DATA_SERVICE_CONNECT_FN, __TEST_CONNECTION_STORAGE, }: CompassWebProps) => JSX.Element;
18
+ export { CompassWeb };
19
+ //# sourceMappingURL=entrypoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../src/entrypoint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAO7D,OAAO,gBAEN,MAAM,gCAAgC,CAAC;AAmCxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AASzE,OAAO,KAAK,EAEV,cAAc,EACf,MAAM,yCAAyC,CAAC;AAsFjD,KAAK,qBAAqB,GAAG,IAAI,CAC/B,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,EAC7C,sBAAsB,GAAG,4BAA4B,CACtD,GAAG;IAAE,cAAc,EAAE,cAAc,CAAA;CAAE,CAAC;AAEvC,KAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,CAAC;IACxD,gBAAgB,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAC;IACvE,WAAW,CAAC,EAAE,CACZ,cAAc,EAAE,cAAc,GAAG,IAAI,EACrC,GAAG,EAAE,GAAG,KACL,KAAK,CAAC,SAAS,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CAC9C,GAAG,IAAI,CACN,qBAAqB,EACrB,sBAAsB,GAAG,4BAA4B,CACtD,CAAC;AA2EF,QAAA,MAAM,UAAU,oPAeb,eAAe,gBAiIjB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,2 @@
1
- import React from 'react';
2
- import WorkspacesPlugin from '@mongodb-js/compass-workspaces';
3
- import type { AllPreferences } from 'compass-preferences-model';
4
- type CompassWebProps = {
5
- darkMode?: boolean;
6
- connectionString: string;
7
- initialPreferences?: Partial<AllPreferences>;
8
- } & Pick<React.ComponentProps<typeof WorkspacesPlugin>, 'initialWorkspaceTabs' | 'onActiveWorkspaceTabChange'>;
9
- declare const CompassWeb: ({ darkMode, connectionString, initialWorkspaceTabs, onActiveWorkspaceTabChange, initialPreferences, __TEST_MONGODB_DATA_SERVICE_CONNECT_FN, }: CompassWebProps) => JSX.Element;
10
- export { CompassWeb };
1
+ export { CompassWeb } from './entrypoint';
11
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAMpE,OAAO,gBAEN,MAAM,gCAAgC,CAAC;AAqCxC,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAGnC,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CAC9C,GAAG,IAAI,CACN,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,EAC7C,sBAAsB,GAAG,4BAA4B,CACtD,CAAC;AA6EF,QAAA,MAAM,UAAU,kJASb,eAAe,gBAuHjB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}