@mongodb-js/compass-web 0.2.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,229 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /* @preserve
8
+ * Leaflet 1.7.1, a JS library for interactive maps. http://leafletjs.com
9
+ * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade
10
+ */
11
+
12
+ /*!
13
+ Copyright (c) 2018 Jed Watson.
14
+ Licensed under the MIT License (MIT), see
15
+ http://jedwatson.github.io/classnames
16
+ */
17
+
18
+ /*!
19
+ * The buffer module from node.js, for the browser.
20
+ *
21
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
22
+ * @license MIT
23
+ */
24
+
25
+ /*!
26
+ * The buffer module from node.js, for the browser.
27
+ *
28
+ * @author Feross Aboukhadijeh <https://feross.org>
29
+ * @license MIT
30
+ */
31
+
32
+ /*!
33
+ * clipboard.js v2.0.10
34
+ * https://clipboardjs.com/
35
+ *
36
+ * Licensed MIT © Zeno Rocha
37
+ */
38
+
39
+ /*!
40
+ * focus-trap 6.9.4
41
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
42
+ */
43
+
44
+ /*!
45
+ * focus-trap 7.2.0
46
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
47
+ */
48
+
49
+ /*!
50
+ * tabbable 5.3.3
51
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
52
+ */
53
+
54
+ /*!
55
+ * tabbable 6.0.1
56
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
57
+ */
58
+
59
+ /*! *****************************************************************************
60
+ Copyright (c) Microsoft Corporation.
61
+
62
+ Permission to use, copy, modify, and/or distribute this software for any
63
+ purpose with or without fee is hereby granted.
64
+
65
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
66
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
67
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
68
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
69
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
70
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
71
+ PERFORMANCE OF THIS SOFTWARE.
72
+ ***************************************************************************** */
73
+
74
+ /*! @preserve
75
+ * numeral.js
76
+ * version : 1.5.6
77
+ * author : Adam Draper
78
+ * license : MIT
79
+ * http://adamwdraper.github.com/Numeral-js/
80
+ */
81
+
82
+ /*! @preserve
83
+ * numeral.js
84
+ * version : 2.0.6
85
+ * author : Adam Draper
86
+ * license : MIT
87
+ * http://adamwdraper.github.com/Numeral-js/
88
+ */
89
+
90
+ /*! https://mths.be/codepointat v0.2.0 by @mathias */
91
+
92
+ /*! https://mths.be/fromcodepoint v0.2.1 by @mathias */
93
+
94
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
95
+
96
+ /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
97
+
98
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
99
+
100
+ /**
101
+ * @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
102
+ * CJS and ESM environments.
103
+ *
104
+ * @license
105
+ * Copyright (c) 2016, Contributors
106
+ * SPDX-License-Identifier: ISC
107
+ */
108
+
109
+ /**
110
+ * @license
111
+ * Copyright (c) 2016, Contributors
112
+ * SPDX-License-Identifier: ISC
113
+ */
114
+
115
+ /**
116
+ * @license
117
+ * Lodash <https://lodash.com/>
118
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
119
+ * Released under MIT license <https://lodash.com/license>
120
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
121
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
122
+ */
123
+
124
+ /**
125
+ * @license React
126
+ * react-is.production.min.js
127
+ *
128
+ * Copyright (c) Facebook, Inc. and its affiliates.
129
+ *
130
+ * This source code is licensed under the MIT license found in the
131
+ * LICENSE file in the root directory of this source tree.
132
+ */
133
+
134
+ /**
135
+ * @license React
136
+ * use-sync-external-store-shim.production.min.js
137
+ *
138
+ * Copyright (c) Facebook, Inc. and its affiliates.
139
+ *
140
+ * This source code is licensed under the MIT license found in the
141
+ * LICENSE file in the root directory of this source tree.
142
+ */
143
+
144
+ /**
145
+ * @license React
146
+ * use-sync-external-store-shim/with-selector.production.min.js
147
+ *
148
+ * Copyright (c) Facebook, Inc. and its affiliates.
149
+ *
150
+ * This source code is licensed under the MIT license found in the
151
+ * LICENSE file in the root directory of this source tree.
152
+ */
153
+
154
+ /**
155
+ * @preserve
156
+ * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
157
+ *
158
+ * @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
159
+ * @see http://github.com/homebrewing/brauhaus-diff
160
+ * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
161
+ * @see http://github.com/garycourt/murmurhash-js
162
+ * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
163
+ * @see http://sites.google.com/site/murmurhash/
164
+ */
165
+
166
+ /**
167
+ * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
168
+ * @version v20.2.0
169
+ * @link http://www.ag-grid.com/
170
+ * @license MIT
171
+ */
172
+
173
+ /** @license React v0.20.2
174
+ * scheduler.production.min.js
175
+ *
176
+ * Copyright (c) Facebook, Inc. and its affiliates.
177
+ *
178
+ * This source code is licensed under the MIT license found in the
179
+ * LICENSE file in the root directory of this source tree.
180
+ */
181
+
182
+ /** @license React v16.13.1
183
+ * react-is.production.min.js
184
+ *
185
+ * Copyright (c) Facebook, Inc. and its affiliates.
186
+ *
187
+ * This source code is licensed under the MIT license found in the
188
+ * LICENSE file in the root directory of this source tree.
189
+ */
190
+
191
+ /** @license React v17.0.2
192
+ * react-dom.production.min.js
193
+ *
194
+ * Copyright (c) Facebook, Inc. and its affiliates.
195
+ *
196
+ * This source code is licensed under the MIT license found in the
197
+ * LICENSE file in the root directory of this source tree.
198
+ */
199
+
200
+ /** @license React v17.0.2
201
+ * react-is.production.min.js
202
+ *
203
+ * Copyright (c) Facebook, Inc. and its affiliates.
204
+ *
205
+ * This source code is licensed under the MIT license found in the
206
+ * LICENSE file in the root directory of this source tree.
207
+ */
208
+
209
+ /** @license React v17.0.2
210
+ * react-jsx-runtime.production.min.js
211
+ *
212
+ * Copyright (c) Facebook, Inc. and its affiliates.
213
+ *
214
+ * This source code is licensed under the MIT license found in the
215
+ * LICENSE file in the root directory of this source tree.
216
+ */
217
+
218
+ /** @license React v17.0.2
219
+ * react.production.min.js
220
+ *
221
+ * Copyright (c) Facebook, Inc. and its affiliates.
222
+ *
223
+ * This source code is licensed under the MIT license found in the
224
+ * LICENSE file in the root directory of this source tree.
225
+ */
226
+
227
+ //! moment.js
228
+
229
+ //! moment.js locale configuration
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../sandbox/index.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
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 };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;AAMnC,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,gBAoHjB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,112 @@
1
+ {
2
+ "name": "@mongodb-js/compass-web",
3
+ "productName": "compass-web Plugin",
4
+ "description": "Compass application packaged for the browser environment",
5
+ "author": {
6
+ "name": "MongoDB Inc",
7
+ "email": "compass@mongodb.com"
8
+ },
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "bugs": {
13
+ "url": "https://jira.mongodb.org/projects/COMPASS/issues",
14
+ "email": "compass@mongodb.com"
15
+ },
16
+ "homepage": "https://github.com/mongodb-js/compass",
17
+ "version": "0.2.0",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/mongodb-js/compass.git"
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "license": "SSPL",
26
+ "main": "dist/index.js",
27
+ "compass:main": "src/index.ts",
28
+ "exports": {
29
+ ".": "./dist/index.js"
30
+ },
31
+ "compass:exports": {
32
+ ".": "./src/index.ts"
33
+ },
34
+ "types": "./dist/src/index.d.ts",
35
+ "scripts": {
36
+ "prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
37
+ "compile": "npm run webpack -- --mode production",
38
+ "webpack": "webpack-compass",
39
+ "postcompile": "tsc --emitDeclarationOnly",
40
+ "start": "npm run webpack serve -- --mode development",
41
+ "analyze": "npm run webpack -- --mode production --analyze",
42
+ "typecheck": "tsc -p tsconfig-lint.json --noEmit",
43
+ "eslint": "eslint",
44
+ "prettier": "prettier",
45
+ "lint": "npm run eslint . && npm run prettier -- --check .",
46
+ "depcheck": "depcheck",
47
+ "check": "npm run typecheck && npm run lint && npm run depcheck",
48
+ "check-ci": "npm run check",
49
+ "test": "mocha",
50
+ "test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
51
+ "test-watch": "npm run test -- --watch",
52
+ "test-ci": "npm run test-cov",
53
+ "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
54
+ },
55
+ "peerDependencies": {
56
+ "bson": "^6.2.0",
57
+ "mongodb": "^6.3.0",
58
+ "react": "^17.0.2",
59
+ "react-dom": "^17.0.2"
60
+ },
61
+ "devDependencies": {
62
+ "@gribnoysup/mongodb-browser": "^1.2.0",
63
+ "@mongodb-js/compass-aggregations": "^9.25.0",
64
+ "@mongodb-js/compass-app-stores": "^7.9.0",
65
+ "@mongodb-js/compass-collection": "^4.22.0",
66
+ "@mongodb-js/compass-components": "^1.21.0",
67
+ "@mongodb-js/compass-crud": "^13.23.0",
68
+ "@mongodb-js/compass-databases-collections": "^1.22.0",
69
+ "@mongodb-js/compass-explain-plan": "^6.23.0",
70
+ "@mongodb-js/compass-export-to-language": "^8.24.0",
71
+ "@mongodb-js/compass-indexes": "^5.22.0",
72
+ "@mongodb-js/compass-query-bar": "^8.24.0",
73
+ "@mongodb-js/compass-schema": "^6.24.0",
74
+ "@mongodb-js/compass-schema-validation": "^6.23.0",
75
+ "@mongodb-js/compass-sidebar": "^5.22.0",
76
+ "@mongodb-js/compass-workspaces": "^0.4.0",
77
+ "@mongodb-js/eslint-config-compass": "^1.0.12",
78
+ "@mongodb-js/mocha-config-compass": "^1.3.3",
79
+ "@mongodb-js/prettier-config-compass": "^1.0.1",
80
+ "@mongodb-js/tsconfig-compass": "^1.0.3",
81
+ "@mongodb-js/webpack-config-compass": "^1.3.0",
82
+ "@testing-library/react": "^12.1.4",
83
+ "@testing-library/user-event": "^13.5.0",
84
+ "@types/chai": "^4.2.21",
85
+ "@types/chai-dom": "^0.0.10",
86
+ "@types/mocha": "^9.0.0",
87
+ "@types/react": "^17.0.5",
88
+ "@types/react-dom": "^17.0.10",
89
+ "@types/sinon-chai": "^3.2.5",
90
+ "buffer": "^6.0.3",
91
+ "chai": "^4.3.6",
92
+ "compass-preferences-model": "^2.16.1",
93
+ "depcheck": "^1.4.1",
94
+ "dns-query": "^0.11.2",
95
+ "eslint": "^7.25.0",
96
+ "events": "^3.3.0",
97
+ "hadron-app-registry": "^9.1.3",
98
+ "mocha": "^10.2.0",
99
+ "mongodb-connection-string-url": "^2.6.0",
100
+ "mongodb-data-service": "^22.17.1",
101
+ "nyc": "^15.1.0",
102
+ "path-browserify": "^1.0.1",
103
+ "prettier": "^2.7.1",
104
+ "process": "^0.11.10",
105
+ "readable-stream": "^4.5.0",
106
+ "sinon": "^17.0.1",
107
+ "util": "^0.12.5",
108
+ "vm-browserify": "^1.1.2",
109
+ "whatwg-url": "^13.0.0"
110
+ },
111
+ "gitHead": "13985bba4e0cf9b03e1ef16f7fed023941ccd567"
112
+ }