@mongodb-js/compass-web 0.20.1 → 0.21.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/bson-transpilers.js +1 -1
- package/dist/compass-web.d.ts +1638 -0
- package/dist/index.js +93 -63
- package/dist/mongodb-js__compass-components.js +111 -111
- package/dist/mongodb-js__compass-components.js.LICENSE.txt +18 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/package.json +47 -38
- package/dist/atlas-auth-service.d.ts +0 -5
- package/dist/atlas-auth-service.d.ts.map +0 -1
- package/dist/connection-storage.d.ts +0 -68
- package/dist/connection-storage.d.ts.map +0 -1
- package/dist/entrypoint.d.ts +0 -76
- package/dist/entrypoint.d.ts.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/logger.d.ts +0 -36
- package/dist/logger.d.ts.map +0 -1
- package/dist/preferences.d.ts +0 -14
- package/dist/preferences.d.ts.map +0 -1
- package/dist/url-builder.d.ts +0 -4
- package/dist/url-builder.d.ts.map +0 -1
|
@@ -4,6 +4,13 @@ object-assign
|
|
|
4
4
|
@license MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
/*!
|
|
8
|
+
* Determine if an object is a Buffer
|
|
9
|
+
*
|
|
10
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
11
|
+
* @license MIT
|
|
12
|
+
*/
|
|
13
|
+
|
|
7
14
|
/*!
|
|
8
15
|
* The buffer module from node.js, for the browser.
|
|
9
16
|
*
|
|
@@ -30,6 +37,8 @@ object-assign
|
|
|
30
37
|
|
|
31
38
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
32
39
|
|
|
40
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
41
|
+
|
|
33
42
|
/**
|
|
34
43
|
* react-table
|
|
35
44
|
*
|
|
@@ -60,6 +69,15 @@ object-assign
|
|
|
60
69
|
* LICENSE file in the root directory of this source tree.
|
|
61
70
|
*/
|
|
62
71
|
|
|
72
|
+
/** @license React v16.13.1
|
|
73
|
+
* react-is.production.min.js
|
|
74
|
+
*
|
|
75
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the MIT license found in the
|
|
78
|
+
* LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/
|
|
80
|
+
|
|
63
81
|
/** @license React v17.0.2
|
|
64
82
|
* react-jsx-runtime.production.min.js
|
|
65
83
|
*
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.11"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"email": "compass@mongodb.com"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://github.com/mongodb-js/compass",
|
|
17
|
-
"version": "0.
|
|
17
|
+
"version": "0.21.0",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/mongodb-js/compass.git"
|
|
@@ -33,13 +33,18 @@
|
|
|
33
33
|
".": "./src/index.tsx",
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
|
-
"types": "./dist/
|
|
36
|
+
"types": "./dist/compass-web.d.ts",
|
|
37
37
|
"scripts": {
|
|
38
|
+
"bootstrap": "npm run postcompile",
|
|
38
39
|
"prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
|
|
39
40
|
"compile": "npm run webpack -- --mode production",
|
|
40
41
|
"webpack": "webpack-compass",
|
|
41
42
|
"postcompile": "npm run typescript",
|
|
42
43
|
"typescript": "tsc -p tsconfig-build.json --emitDeclarationOnly",
|
|
44
|
+
"posttypescript": "npm run api-extractor",
|
|
45
|
+
"api-extractor": "api-extractor run --local",
|
|
46
|
+
"postapi-extractor": "node scripts/clean-dts.mjs",
|
|
47
|
+
"test-types": "cd test/types && npm install && npm test",
|
|
43
48
|
"prestart": "npm run compile -w @mongodb-js/webpack-config-compass",
|
|
44
49
|
"start": "electron ./scripts/electron-proxy.js",
|
|
45
50
|
"analyze": "npm run webpack -- --mode production --analyze",
|
|
@@ -51,6 +56,7 @@
|
|
|
51
56
|
"lint": "npm run eslint . && npm run prettier -- --check .",
|
|
52
57
|
"depcheck": "depcheck",
|
|
53
58
|
"check": "npm run typecheck && npm run lint && npm run depcheck",
|
|
59
|
+
"postcheck": "npm run test-types",
|
|
54
60
|
"check-ci": "npm run check",
|
|
55
61
|
"test": "mocha",
|
|
56
62
|
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
|
|
@@ -63,39 +69,41 @@
|
|
|
63
69
|
"react-dom": "^17.0.2"
|
|
64
70
|
},
|
|
65
71
|
"devDependencies": {
|
|
66
|
-
"@
|
|
67
|
-
"@mongodb-js/
|
|
68
|
-
"@mongodb-js/compass-
|
|
69
|
-
"@mongodb-js/compass-app-
|
|
70
|
-
"@mongodb-js/compass-
|
|
71
|
-
"@mongodb-js/compass-
|
|
72
|
-
"@mongodb-js/compass-
|
|
73
|
-
"@mongodb-js/compass-
|
|
74
|
-
"@mongodb-js/compass-
|
|
75
|
-
"@mongodb-js/compass-
|
|
76
|
-
"@mongodb-js/compass-
|
|
77
|
-
"@mongodb-js/compass-
|
|
78
|
-
"@mongodb-js/compass-
|
|
79
|
-
"@mongodb-js/compass-
|
|
80
|
-
"@mongodb-js/compass-
|
|
81
|
-
"@mongodb-js/compass-
|
|
82
|
-
"@mongodb-js/compass-
|
|
83
|
-
"@mongodb-js/compass-
|
|
84
|
-
"@mongodb-js/compass-
|
|
85
|
-
"@mongodb-js/compass-
|
|
86
|
-
"@mongodb-js/compass-schema
|
|
87
|
-
"@mongodb-js/compass-
|
|
88
|
-
"@mongodb-js/compass-
|
|
89
|
-
"@mongodb-js/compass-
|
|
90
|
-
"@mongodb-js/compass-
|
|
91
|
-
"@mongodb-js/
|
|
72
|
+
"@microsoft/api-extractor": "^7.52.11",
|
|
73
|
+
"@mongodb-js/atlas-service": "^0.57.0",
|
|
74
|
+
"@mongodb-js/compass-aggregations": "^9.74.0",
|
|
75
|
+
"@mongodb-js/compass-app-registry": "^9.4.21",
|
|
76
|
+
"@mongodb-js/compass-app-stores": "^7.58.0",
|
|
77
|
+
"@mongodb-js/compass-assistant": "^1.3.0",
|
|
78
|
+
"@mongodb-js/compass-collection": "^4.71.0",
|
|
79
|
+
"@mongodb-js/compass-components": "^1.50.0",
|
|
80
|
+
"@mongodb-js/compass-connections": "^1.72.0",
|
|
81
|
+
"@mongodb-js/compass-crud": "^13.72.0",
|
|
82
|
+
"@mongodb-js/compass-data-modeling": "^1.23.0",
|
|
83
|
+
"@mongodb-js/compass-databases-collections": "^1.71.0",
|
|
84
|
+
"@mongodb-js/compass-explain-plan": "^6.72.0",
|
|
85
|
+
"@mongodb-js/compass-export-to-language": "^9.48.0",
|
|
86
|
+
"@mongodb-js/compass-field-store": "^9.47.0",
|
|
87
|
+
"@mongodb-js/compass-generative-ai": "^0.52.0",
|
|
88
|
+
"@mongodb-js/compass-global-writes": "^1.31.0",
|
|
89
|
+
"@mongodb-js/compass-indexes": "^5.71.0",
|
|
90
|
+
"@mongodb-js/compass-logging": "^1.7.13",
|
|
91
|
+
"@mongodb-js/compass-query-bar": "^8.73.0",
|
|
92
|
+
"@mongodb-js/compass-schema": "^6.73.0",
|
|
93
|
+
"@mongodb-js/compass-schema-validation": "^6.72.0",
|
|
94
|
+
"@mongodb-js/compass-sidebar": "^5.72.0",
|
|
95
|
+
"@mongodb-js/compass-telemetry": "^1.14.1",
|
|
96
|
+
"@mongodb-js/compass-welcome": "^0.70.0",
|
|
97
|
+
"@mongodb-js/compass-workspaces": "^0.53.0",
|
|
98
|
+
"@mongodb-js/connection-info": "^0.18.0",
|
|
99
|
+
"@mongodb-js/connection-storage": "^0.47.0",
|
|
92
100
|
"@mongodb-js/devtools-proxy-support": "^0.5.2",
|
|
93
|
-
"@mongodb-js/eslint-config-compass": "^1.4.
|
|
94
|
-
"@mongodb-js/mocha-config-compass": "^1.7.
|
|
101
|
+
"@mongodb-js/eslint-config-compass": "^1.4.8",
|
|
102
|
+
"@mongodb-js/mocha-config-compass": "^1.7.1",
|
|
95
103
|
"@mongodb-js/prettier-config-compass": "^1.2.8",
|
|
96
|
-
"@mongodb-js/testing-library-compass": "^1.3.
|
|
97
|
-
"@mongodb-js/tsconfig-compass": "^1.2.
|
|
98
|
-
"@mongodb-js/webpack-config-compass": "^1.
|
|
104
|
+
"@mongodb-js/testing-library-compass": "^1.3.11",
|
|
105
|
+
"@mongodb-js/tsconfig-compass": "^1.2.10",
|
|
106
|
+
"@mongodb-js/webpack-config-compass": "^1.10.1",
|
|
99
107
|
"@types/chai": "^4.2.21",
|
|
100
108
|
"@types/chai-dom": "^0.0.10",
|
|
101
109
|
"@types/express-http-proxy": "^1.6.6",
|
|
@@ -107,20 +115,21 @@
|
|
|
107
115
|
"bson": "^6.10.4",
|
|
108
116
|
"buffer": "^6.0.3",
|
|
109
117
|
"chai": "^4.3.6",
|
|
110
|
-
"compass-preferences-model": "^2.
|
|
118
|
+
"compass-preferences-model": "^2.52.0",
|
|
111
119
|
"crypto-browserify": "^3.12.0",
|
|
112
120
|
"debug": "^4.3.4",
|
|
113
121
|
"depcheck": "^1.4.1",
|
|
114
122
|
"dns-query": "^0.11.2",
|
|
115
|
-
"electron": "^37.
|
|
123
|
+
"electron": "^37.4.0",
|
|
116
124
|
"events": "^3.3.0",
|
|
117
125
|
"express": "^4.21.1",
|
|
118
126
|
"express-http-proxy": "^2.0.0",
|
|
119
127
|
"is-ip": "^5.0.1",
|
|
120
128
|
"lodash": "^4.17.21",
|
|
121
129
|
"mocha": "^10.2.0",
|
|
122
|
-
"mongodb": "^6.
|
|
123
|
-
"mongodb-
|
|
130
|
+
"mongodb": "^6.19.0",
|
|
131
|
+
"mongodb-build-info": "^1.7.2",
|
|
132
|
+
"mongodb-data-service": "^22.31.0",
|
|
124
133
|
"mongodb-log-writer": "^2.3.4",
|
|
125
134
|
"mongodb-ns": "^2.4.2",
|
|
126
135
|
"nyc": "^15.1.0",
|
|
@@ -135,5 +144,5 @@
|
|
|
135
144
|
"whatwg-url": "^13.0.0",
|
|
136
145
|
"ws": "^8.16.0"
|
|
137
146
|
},
|
|
138
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "f3435327eac3e092800d5b915c3415c9643f80d0"
|
|
139
148
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-auth-service.d.ts","sourceRoot":"","sources":["../src/atlas-auth-service.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA2B1B,wBAAgB,6BAA6B,CAAC,EAC5C,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC;CAC5B,qBAMA"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ConnectionStorage, ConnectionInfo } from '@mongodb-js/connection-storage/provider';
|
|
3
|
-
import { InMemoryConnectionStorage } from '@mongodb-js/connection-storage/provider';
|
|
4
|
-
import type { AtlasService } from '@mongodb-js/atlas-service/provider';
|
|
5
|
-
import { type Logger } from '@mongodb-js/compass-logging/provider';
|
|
6
|
-
type ElectableSpecs = {
|
|
7
|
-
instanceSize?: string;
|
|
8
|
-
};
|
|
9
|
-
type RegionConfig = {
|
|
10
|
-
priority: number;
|
|
11
|
-
electableSpecs: ElectableSpecs;
|
|
12
|
-
};
|
|
13
|
-
type ReplicationSpec = {
|
|
14
|
-
regionConfigs: RegionConfig[];
|
|
15
|
-
};
|
|
16
|
-
type ClusterType = 'REPLICASET' | 'SHARDED' | 'GEOSHARDED';
|
|
17
|
-
type ClusterDescription = {
|
|
18
|
-
'@provider': string;
|
|
19
|
-
uniqueId: string;
|
|
20
|
-
groupId: string;
|
|
21
|
-
name: string;
|
|
22
|
-
clusterType: ClusterType;
|
|
23
|
-
srvAddress: string;
|
|
24
|
-
state: string;
|
|
25
|
-
deploymentItemName: string;
|
|
26
|
-
replicationSpecList?: ReplicationSpec[];
|
|
27
|
-
isPaused?: boolean;
|
|
28
|
-
geoSharding?: {
|
|
29
|
-
selfManagedSharding?: boolean;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export type ClusterDescriptionWithDataProcessingRegion = ClusterDescription & {
|
|
33
|
-
dataProcessingRegion: {
|
|
34
|
-
regionalUrl: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* @internal exported for testing purposes
|
|
39
|
-
*/
|
|
40
|
-
export declare class AtlasCloudConnectionStorage extends InMemoryConnectionStorage implements ConnectionStorage {
|
|
41
|
-
private atlasService;
|
|
42
|
-
private orgId;
|
|
43
|
-
private projectId;
|
|
44
|
-
private logger;
|
|
45
|
-
private loadAllPromise;
|
|
46
|
-
constructor(atlasService: AtlasService, orgId: string, projectId: string, logger: Logger);
|
|
47
|
-
load({ id }: {
|
|
48
|
-
id: string;
|
|
49
|
-
}): Promise<ConnectionInfo | undefined>;
|
|
50
|
-
private _loadAndNormalizeClusterDescriptionInfo;
|
|
51
|
-
loadAll(): Promise<ConnectionInfo[]>;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Only used in the sandbox to provide connection info when connecting to the
|
|
55
|
-
* non-Atlas deployment
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
export declare const SandboxConnectionStorageProvider: ({ value, children, }: {
|
|
59
|
-
value: ConnectionStorage | null;
|
|
60
|
-
children: React.ReactNode;
|
|
61
|
-
}) => React.JSX.Element;
|
|
62
|
-
export declare const AtlasCloudConnectionStorageProvider: ({ orgId, projectId, children, }: {
|
|
63
|
-
orgId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
children: React.ReactChild;
|
|
66
|
-
}) => React.JSX.Element;
|
|
67
|
-
export {};
|
|
68
|
-
//# sourceMappingURL=connection-storage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection-storage.d.ts","sourceRoot":"","sources":["../src/connection-storage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EAEf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,yBAAyB,EAC1B,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEvE,OAAO,EAGL,KAAK,MAAM,EACZ,MAAM,sCAAsC,CAAC;AAE9C,KAAK,cAAc,GAAG;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B,CAAC;AAEF,KAAK,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,YAAY,CAAC;AAE3D,KAAK,kBAAkB,GAAG;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;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ongodb-js/compass-connections/provider';
|
|
3
|
-
import type { OpenWorkspaceOptions } from '@mongodb-js/compass-workspaces';
|
|
4
|
-
import WorkspacesPlugin from '@mongodb-js/compass-workspaces';
|
|
5
|
-
import type { AllPreferences } from 'compass-preferences-model/provider';
|
|
6
|
-
import type { LogFunction, DebugFunction } from './logger';
|
|
7
|
-
export type TrackFunction = (event: string, properties: Record<string, any>) => void;
|
|
8
|
-
type CompassWebProps = {
|
|
9
|
-
/**
|
|
10
|
-
* App name to be passed with the connection string when connection to a
|
|
11
|
-
* cluster (default: "Compass Web")
|
|
12
|
-
*/
|
|
13
|
-
appName?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Atlas Cloud organization id
|
|
16
|
-
*/
|
|
17
|
-
orgId: string;
|
|
18
|
-
/**
|
|
19
|
-
* Atlas Cloud project id (sometimes called group id)
|
|
20
|
-
*/
|
|
21
|
-
projectId: string;
|
|
22
|
-
/**
|
|
23
|
-
* Whether or not darkMode should be active for the app
|
|
24
|
-
*/
|
|
25
|
-
darkMode?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Optional. If passed, compass-web will try to find connection info with that
|
|
28
|
-
* id in connection storage and pass it as autoconnect info to the
|
|
29
|
-
* compass-connections
|
|
30
|
-
*/
|
|
31
|
-
initialAutoconnectId?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Optional. If passed, compass-web will open provided workspace right away.
|
|
34
|
-
* If workspace requires active connection, the connectionId from the
|
|
35
|
-
* workspace will be used for the autoconnect info getter. In that case
|
|
36
|
-
* connectionId from the workspace takes precedence over
|
|
37
|
-
* `initialAutoconnectId`
|
|
38
|
-
*/
|
|
39
|
-
initialWorkspace?: OpenWorkspaceOptions;
|
|
40
|
-
/**
|
|
41
|
-
* Callback prop called when current active workspace changes. Can be used to
|
|
42
|
-
* communicate current workspace back to the parent component for example to
|
|
43
|
-
* sync router with the current active workspace
|
|
44
|
-
*/
|
|
45
|
-
onActiveWorkspaceTabChange: React.ComponentProps<typeof WorkspacesPlugin>['onActiveWorkspaceTabChange'];
|
|
46
|
-
/**
|
|
47
|
-
* Set of initial preferences to override default values
|
|
48
|
-
*/
|
|
49
|
-
initialPreferences?: Partial<AllPreferences>;
|
|
50
|
-
/**
|
|
51
|
-
* Callback prop called every time any code inside Compass logs something
|
|
52
|
-
*/
|
|
53
|
-
onLog?: LogFunction;
|
|
54
|
-
/**
|
|
55
|
-
* Callback prop called every time any code inside Compass prints a debug
|
|
56
|
-
* statement
|
|
57
|
-
*/
|
|
58
|
-
onDebug?: DebugFunction;
|
|
59
|
-
/**
|
|
60
|
-
* Callback prop called for every track event inside Compass
|
|
61
|
-
*/
|
|
62
|
-
onTrack?: TrackFunction;
|
|
63
|
-
/**
|
|
64
|
-
* Callback prop that will be called with atlas metadata for a certain cluster
|
|
65
|
-
* when the action is selected from the sidebar actions. Should be used to
|
|
66
|
-
* show the Atlas Cloud "Connect" modal
|
|
67
|
-
*/
|
|
68
|
-
onOpenConnectViaModal?: (atlasMetadata: ConnectionInfo['atlasMetadata']) => void;
|
|
69
|
-
/**
|
|
70
|
-
* Callback prop called when connections fail to load
|
|
71
|
-
*/
|
|
72
|
-
onFailToLoadConnections: (err: Error) => void;
|
|
73
|
-
};
|
|
74
|
-
declare const CompassWeb: ({ appName, orgId, projectId, darkMode, initialAutoconnectId, initialWorkspace, onActiveWorkspaceTabChange, initialPreferences, onLog, onDebug, onTrack, onOpenConnectViaModal, onFailToLoadConnections, }: CompassWebProps) => React.JSX.Element;
|
|
75
|
-
export { CompassWeb };
|
|
76
|
-
//# sourceMappingURL=entrypoint.d.ts.map
|
package/dist/entrypoint.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../src/entrypoint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAG/E,OAAO,KAAK,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AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { CompassWeb } from './entrypoint';
|
|
2
|
-
export * from './url-builder';
|
|
3
|
-
export type { OpenWorkspaceOptions, WorkspaceTab, } from '@mongodb-js/compass-workspaces';
|
|
4
|
-
export { CompassExperimentationProvider } from '@mongodb-js/compass-telemetry';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;AAExC,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC"}
|
package/dist/logger.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Logger } from '@mongodb-js/compass-logging/provider';
|
|
2
|
-
import { mongoLogId } from '@mongodb-js/compass-logging/provider';
|
|
3
|
-
export type LogMessage = {
|
|
4
|
-
id: number;
|
|
5
|
-
t: {
|
|
6
|
-
$date: string;
|
|
7
|
-
};
|
|
8
|
-
s: 'F' | 'E' | 'W' | 'I' | 'D1' | 'D2' | 'D3' | 'D4' | 'D5';
|
|
9
|
-
c: string;
|
|
10
|
-
ctx: string;
|
|
11
|
-
msg: string;
|
|
12
|
-
attr?: any;
|
|
13
|
-
};
|
|
14
|
-
export type LogFunction = (message: LogMessage) => void;
|
|
15
|
-
export type DebugFunction = (...args: any[]) => void;
|
|
16
|
-
type Debugger = Logger['debug'];
|
|
17
|
-
export declare class CompassWebLogger implements Logger {
|
|
18
|
-
private component;
|
|
19
|
-
private callbackRef;
|
|
20
|
-
log: Logger['log'];
|
|
21
|
-
debug: Debugger;
|
|
22
|
-
constructor(component: string, callbackRef: {
|
|
23
|
-
current: {
|
|
24
|
-
onLog?: LogFunction;
|
|
25
|
-
onDebug?: DebugFunction;
|
|
26
|
-
};
|
|
27
|
-
});
|
|
28
|
-
mongoLogId: typeof mongoLogId;
|
|
29
|
-
createLogger: (component: string) => Logger;
|
|
30
|
-
}
|
|
31
|
-
export declare function useCompassWebLogger(callbacks: {
|
|
32
|
-
onLog?: LogFunction;
|
|
33
|
-
onDebug?: DebugFunction;
|
|
34
|
-
}): CompassWebLogger;
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=logger.d.ts.map
|
package/dist/logger.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAGnE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGlE,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACrB,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5D,CAAC,EAAE,MAAM,CAAC;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAErD,KAAK,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AA+BhC,qBAAa,gBAAiB,YAAW,MAAM;IAM3C,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,WAAW;IANrB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAEnB,KAAK,EAAE,QAAQ,CAAC;gBAGN,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE;QACnB,OAAO,EAAE;YACP,KAAK,CAAC,EAAE,WAAW,CAAC;YACpB,OAAO,CAAC,EAAE,aAAa,CAAC;SACzB,CAAC;KACH;IAaH,UAAU,oBAAc;IAExB,YAAY,GAAI,WAAW,MAAM,KAAG,MAAM,CAExC;CACH;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE;IAC7C,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,gBAAgB,CAWnB"}
|
package/dist/preferences.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AllPreferences } from 'compass-preferences-model/provider';
|
|
3
|
-
import { CompassWebPreferencesAccess } from 'compass-preferences-model/provider';
|
|
4
|
-
export type SandboxPreferencesUpdateTrigger = (updatePreference: (preferences: Partial<AllPreferences>) => Promise<void>) => () => void;
|
|
5
|
-
/**
|
|
6
|
-
* Only used in the sandbox to provide a way to update preferences.
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export declare const SandboxPreferencesUpdateProvider: ({ value, children, }: {
|
|
10
|
-
value: SandboxPreferencesUpdateTrigger | null;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}) => React.JSX.Element;
|
|
13
|
-
export declare function useCompassWebPreferences(initialPreferences?: Partial<AllPreferences>): React.MutableRefObject<CompassWebPreferencesAccess>;
|
|
14
|
-
//# sourceMappingURL=preferences.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../src/preferences.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEjF,MAAM,MAAM,+BAA+B,GAAG,CAC5C,gBAAgB,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,KACtE,MAAM,IAAI,CAAC;AAUhB;;;GAGG;AACH,eAAO,MAAM,gCAAgC,GAAI,sBAG9C;IACD,KAAK,EAAE,+BAA+B,GAAG,IAAI,CAAC;IAC9C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,sBAMA,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,kBAAkB,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAC3C,KAAK,CAAC,gBAAgB,CAAC,2BAA2B,CAAC,CAsCrD"}
|
package/dist/url-builder.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { OpenWorkspaceOptions, WorkspaceTab } from '@mongodb-js/compass-workspaces';
|
|
2
|
-
export declare function getWorkspaceTabFromRoute(route: string): OpenWorkspaceOptions | null;
|
|
3
|
-
export declare function getRouteFromWorkspaceTab(tab: WorkspaceTab | null): string;
|
|
4
|
-
//# sourceMappingURL=url-builder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url-builder.d.ts","sourceRoot":"","sources":["../src/url-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,YAAY,EACb,MAAM,gCAAgC,CAAC;AA+CxC,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,GACZ,oBAAoB,GAAG,IAAI,CAoB7B;AAcD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI,UAwBhE"}
|