@mongodb-js/compass-web 0.4.5 → 0.5.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/entrypoint.d.ts +5 -1
- package/dist/entrypoint.d.ts.map +1 -1
- package/dist/index.js +208 -208
- package/dist/logger-and-telemetry.d.ts +26 -0
- package/dist/logger-and-telemetry.d.ts.map +1 -0
- package/package.json +30 -29
- package/dist/compass-web-connection-storage.d.ts +0 -12
- package/dist/compass-web-connection-storage.d.ts.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Logger } from '@mongodb-js/compass-logging/provider';
|
|
2
|
+
import { mongoLogId } from '@mongodb-js/compass-logging/provider';
|
|
3
|
+
export type TrackFunction = (event: string, properties: Record<string, any>) => void;
|
|
4
|
+
export type LogFunction = (type: 'debug' | 'info' | 'warn' | 'error' | 'fatal', ...args: any[]) => void;
|
|
5
|
+
export type DebugFunction = (...args: any[]) => void;
|
|
6
|
+
type Debugger = Logger['debug'];
|
|
7
|
+
export declare class CompassWebLoggerAndTelemetry implements Logger {
|
|
8
|
+
private component;
|
|
9
|
+
private callbackRef;
|
|
10
|
+
log: Logger['log'];
|
|
11
|
+
debug: Debugger;
|
|
12
|
+
constructor(component: string, callbackRef: {
|
|
13
|
+
current: {
|
|
14
|
+
onLog?: LogFunction;
|
|
15
|
+
onDebug?: DebugFunction;
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
mongoLogId: typeof mongoLogId;
|
|
19
|
+
createLogger: (component: string) => Logger;
|
|
20
|
+
}
|
|
21
|
+
export declare function useCompassWebLoggerAndTelemetry(callbacks: {
|
|
22
|
+
onLog?: LogFunction;
|
|
23
|
+
onDebug?: DebugFunction;
|
|
24
|
+
}): CompassWebLoggerAndTelemetry;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=logger-and-telemetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-and-telemetry.d.ts","sourceRoot":"","sources":["../src/logger-and-telemetry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAEP,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGlE,MAAM,MAAM,aAAa,GAAG,CAC1B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC5B,IAAI,CAAC;AAEV,MAAM,MAAM,WAAW,GAAG,CACxB,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,EACnD,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,IAAI,CAAC;AAEV,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAwErD,KAAK,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AA+BhC,qBAAa,4BAA6B,YAAW,MAAM;IAMvD,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;IASH,UAAU,oBAAc;IAExB,YAAY,cAAe,MAAM,KAAG,MAAM,CAExC;CACH;AAED,wBAAgB,+BAA+B,CAAC,SAAS,EAAE;IACzD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,4BAA4B,CAW/B"}
|
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.5.1",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/mongodb-js/compass.git"
|
|
@@ -62,32 +62,34 @@
|
|
|
62
62
|
"react-dom": "^17.0.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@mongodb-js/atlas-service": "^0.
|
|
66
|
-
"@mongodb-js/compass-aggregations": "^9.
|
|
67
|
-
"@mongodb-js/compass-app-stores": "^7.
|
|
68
|
-
"@mongodb-js/compass-collection": "^4.
|
|
69
|
-
"@mongodb-js/compass-components": "^1.
|
|
70
|
-
"@mongodb-js/compass-connections": "^1.
|
|
71
|
-
"@mongodb-js/compass-crud": "^13.
|
|
72
|
-
"@mongodb-js/compass-databases-collections": "^1.
|
|
73
|
-
"@mongodb-js/compass-explain-plan": "^6.
|
|
74
|
-
"@mongodb-js/compass-export-to-language": "^9.
|
|
75
|
-
"@mongodb-js/compass-field-store": "^9.
|
|
76
|
-
"@mongodb-js/compass-generative-ai": "^0.
|
|
77
|
-
"@mongodb-js/compass-indexes": "^5.
|
|
78
|
-
"@mongodb-js/compass-logging": "^1.
|
|
79
|
-
"@mongodb-js/compass-query-bar": "^8.
|
|
80
|
-
"@mongodb-js/compass-schema": "^6.
|
|
81
|
-
"@mongodb-js/compass-schema-validation": "^6.
|
|
82
|
-
"@mongodb-js/compass-sidebar": "^5.
|
|
83
|
-
"@mongodb-js/compass-
|
|
84
|
-
"@mongodb-js/
|
|
85
|
-
"@mongodb-js/
|
|
65
|
+
"@mongodb-js/atlas-service": "^0.22.0",
|
|
66
|
+
"@mongodb-js/compass-aggregations": "^9.35.0",
|
|
67
|
+
"@mongodb-js/compass-app-stores": "^7.19.0",
|
|
68
|
+
"@mongodb-js/compass-collection": "^4.32.0",
|
|
69
|
+
"@mongodb-js/compass-components": "^1.26.0",
|
|
70
|
+
"@mongodb-js/compass-connections": "^1.33.0",
|
|
71
|
+
"@mongodb-js/compass-crud": "^13.33.0",
|
|
72
|
+
"@mongodb-js/compass-databases-collections": "^1.32.0",
|
|
73
|
+
"@mongodb-js/compass-explain-plan": "^6.33.0",
|
|
74
|
+
"@mongodb-js/compass-export-to-language": "^9.9.0",
|
|
75
|
+
"@mongodb-js/compass-field-store": "^9.8.0",
|
|
76
|
+
"@mongodb-js/compass-generative-ai": "^0.16.0",
|
|
77
|
+
"@mongodb-js/compass-indexes": "^5.32.0",
|
|
78
|
+
"@mongodb-js/compass-logging": "^1.3.1",
|
|
79
|
+
"@mongodb-js/compass-query-bar": "^8.34.0",
|
|
80
|
+
"@mongodb-js/compass-schema": "^6.34.0",
|
|
81
|
+
"@mongodb-js/compass-schema-validation": "^6.33.0",
|
|
82
|
+
"@mongodb-js/compass-sidebar": "^5.33.0",
|
|
83
|
+
"@mongodb-js/compass-telemetry": "^1.0.1",
|
|
84
|
+
"@mongodb-js/compass-workspaces": "^0.14.0",
|
|
85
|
+
"@mongodb-js/connection-storage": "^0.14.1",
|
|
86
|
+
"@mongodb-js/eslint-config-compass": "^1.1.2",
|
|
86
87
|
"@mongodb-js/mocha-config-compass": "^1.3.9",
|
|
87
88
|
"@mongodb-js/prettier-config-compass": "^1.0.2",
|
|
88
89
|
"@mongodb-js/tsconfig-compass": "^1.0.4",
|
|
89
|
-
"@mongodb-js/webpack-config-compass": "^1.3.
|
|
90
|
+
"@mongodb-js/webpack-config-compass": "^1.3.11",
|
|
90
91
|
"@testing-library/react": "^12.1.5",
|
|
92
|
+
"@testing-library/react-hooks": "^7.0.2",
|
|
91
93
|
"@testing-library/user-event": "^13.5.0",
|
|
92
94
|
"@types/chai": "^4.2.21",
|
|
93
95
|
"@types/chai-dom": "^0.0.10",
|
|
@@ -100,7 +102,7 @@
|
|
|
100
102
|
"bson": "^6.2.0",
|
|
101
103
|
"buffer": "^6.0.3",
|
|
102
104
|
"chai": "^4.3.6",
|
|
103
|
-
"compass-preferences-model": "^2.
|
|
105
|
+
"compass-preferences-model": "^2.23.1",
|
|
104
106
|
"crypto-browserify": "^3.12.0",
|
|
105
107
|
"debug": "^4.3.4",
|
|
106
108
|
"depcheck": "^1.4.1",
|
|
@@ -110,14 +112,13 @@
|
|
|
110
112
|
"events": "^3.3.0",
|
|
111
113
|
"express": "^4.19.2",
|
|
112
114
|
"express-http-proxy": "^2.0.0",
|
|
113
|
-
"hadron-app-registry": "^9.1.
|
|
115
|
+
"hadron-app-registry": "^9.1.12",
|
|
114
116
|
"is-ip": "^5.0.1",
|
|
115
117
|
"lodash": "^4.17.21",
|
|
116
118
|
"mocha": "^10.2.0",
|
|
117
|
-
"mongodb": "^6.
|
|
119
|
+
"mongodb": "^6.7.0",
|
|
118
120
|
"mongodb-connection-string-url": "^3.0.1",
|
|
119
|
-
"mongodb-data-service": "^22.
|
|
120
|
-
"mongodb-log-writer": "^1.4.2",
|
|
121
|
+
"mongodb-data-service": "^22.21.1",
|
|
121
122
|
"nyc": "^15.1.0",
|
|
122
123
|
"os-browserify": "^0.3.0",
|
|
123
124
|
"path-browserify": "^1.0.1",
|
|
@@ -131,5 +132,5 @@
|
|
|
131
132
|
"whatwg-url": "^13.0.0",
|
|
132
133
|
"ws": "^8.16.0"
|
|
133
134
|
},
|
|
134
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "c6f308665ee6096169843a5623def8158da0a32a"
|
|
135
136
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ConnectionStorage, type ConnectionInfo, InMemoryConnectionStorage } from '@mongodb-js/connection-storage/provider';
|
|
2
|
-
export declare class CompassWebConnectionStorage extends InMemoryConnectionStorage implements ConnectionStorage {
|
|
3
|
-
private readonly _getAutoConnectInfo;
|
|
4
|
-
private autoConnectInfo;
|
|
5
|
-
constructor(_getAutoConnectInfo: () => Promise<ConnectionInfo>);
|
|
6
|
-
getAutoConnectInfo(): Promise<ConnectionInfo | undefined>;
|
|
7
|
-
loadAll(): Promise<ConnectionInfo[]>;
|
|
8
|
-
load({ id }: {
|
|
9
|
-
id: string;
|
|
10
|
-
}): Promise<ConnectionInfo | undefined>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=compass-web-connection-storage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compass-web-connection-storage.d.ts","sourceRoot":"","sources":["../src/compass-web-connection-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,yBAAyB,EAC1B,MAAM,yCAAyC,CAAC;AAEjD,qBAAa,2BACX,SAAQ,yBACR,YAAW,iBAAiB;IAI1B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAFtC,OAAO,CAAC,eAAe,CAA+B;gBAEnC,mBAAmB,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC;IAK/D,kBAAkB,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAIzD,OAAO,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAOpC,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;CAQxE"}
|