@mongodb-js/compass-components 1.61.1 → 1.63.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.
Files changed (46) hide show
  1. package/lib/components/actions/dropdown-menu-button.d.ts.map +1 -1
  2. package/lib/components/actions/dropdown-menu-button.js +2 -2
  3. package/lib/components/actions/dropdown-menu-button.js.map +1 -1
  4. package/lib/components/bson-value.d.ts.map +1 -1
  5. package/lib/components/bson-value.js +85 -52
  6. package/lib/components/bson-value.js.map +1 -1
  7. package/lib/components/document-list/element-editors.d.ts +4 -0
  8. package/lib/components/document-list/element-editors.d.ts.map +1 -1
  9. package/lib/components/document-list/element-editors.js +46 -9
  10. package/lib/components/document-list/element-editors.js.map +1 -1
  11. package/lib/components/document-list/element.d.ts.map +1 -1
  12. package/lib/components/document-list/element.js +44 -7
  13. package/lib/components/document-list/element.js.map +1 -1
  14. package/lib/components/document-list/index.d.ts +1 -0
  15. package/lib/components/document-list/index.d.ts.map +1 -1
  16. package/lib/components/document-list/index.js +3 -1
  17. package/lib/components/document-list/index.js.map +1 -1
  18. package/lib/components/error-boundary.js +3 -6
  19. package/lib/components/error-boundary.js.map +1 -1
  20. package/lib/components/guide-cue/guide-cue-exceptions.js +4 -4
  21. package/lib/components/guide-cue/guide-cue-exceptions.js.map +1 -1
  22. package/lib/components/guide-cue/guide-cue-service.js +4 -3
  23. package/lib/components/guide-cue/guide-cue-service.js.map +1 -1
  24. package/lib/components/guide-cue/guide-cue-storage.js +2 -0
  25. package/lib/components/guide-cue/guide-cue-storage.js.map +1 -1
  26. package/lib/components/modals/form-modal.d.ts.map +1 -1
  27. package/lib/components/modals/form-modal.js +9 -4
  28. package/lib/components/modals/form-modal.js.map +1 -1
  29. package/lib/components/modals/info-modal.d.ts.map +1 -1
  30. package/lib/components/modals/info-modal.js +1 -2
  31. package/lib/components/modals/info-modal.js.map +1 -1
  32. package/lib/components/select-list.d.ts +1 -0
  33. package/lib/components/select-list.d.ts.map +1 -1
  34. package/lib/components/select-list.js +11 -4
  35. package/lib/components/select-list.js.map +1 -1
  36. package/lib/components/signals.js +5 -5
  37. package/lib/components/signals.js.map +1 -1
  38. package/lib/hooks/use-confirmation.js +2 -4
  39. package/lib/hooks/use-confirmation.js.map +1 -1
  40. package/lib/hooks/use-toast.js +5 -7
  41. package/lib/hooks/use-toast.js.map +1 -1
  42. package/package.json +54 -54
  43. package/lib/components/modals/modal-footer-button.d.ts +0 -5
  44. package/lib/components/modals/modal-footer-button.d.ts.map +0 -1
  45. package/lib/components/modals/modal-footer-button.js +0 -35
  46. package/lib/components/modals/modal-footer-button.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-components",
3
- "version": "1.61.1",
3
+ "version": "1.63.0",
4
4
  "description": "React Components used in Compass",
5
5
  "license": "SSPL",
6
6
  "main": "lib/index.js",
@@ -35,69 +35,69 @@
35
35
  "@dnd-kit/core": "^6.0.7",
36
36
  "@dnd-kit/sortable": "^7.0.2",
37
37
  "@dnd-kit/utilities": "^3.2.1",
38
- "@leafygreen-ui/avatar": "^3.2.0",
39
- "@leafygreen-ui/badge": "^10.2.3",
40
- "@leafygreen-ui/banner": "^10.2.4",
41
- "@leafygreen-ui/button": "^25.1.3",
42
- "@leafygreen-ui/card": "^13.3.0",
43
- "@leafygreen-ui/checkbox": "^18.1.4",
44
- "@leafygreen-ui/chip": "^4.0.10",
45
- "@leafygreen-ui/code": "^20.2.5",
46
- "@leafygreen-ui/combobox": "^12.3.0",
47
- "@leafygreen-ui/confirmation-modal": "^10.3.0",
48
- "@leafygreen-ui/copyable": "^12.0.2",
49
- "@leafygreen-ui/drawer": "^5.2.1",
38
+ "@leafygreen-ui/avatar": "^3.3.0",
39
+ "@leafygreen-ui/badge": "^10.2.4",
40
+ "@leafygreen-ui/banner": "^10.2.5",
41
+ "@leafygreen-ui/button": "^25.2.1",
42
+ "@leafygreen-ui/card": "^13.3.1",
43
+ "@leafygreen-ui/checkbox": "^18.1.5",
44
+ "@leafygreen-ui/chip": "^4.2.1",
45
+ "@leafygreen-ui/code": "^20.2.7",
46
+ "@leafygreen-ui/combobox": "^12.5.0",
47
+ "@leafygreen-ui/confirmation-modal": "^11.0.1",
48
+ "@leafygreen-ui/copyable": "^12.0.3",
49
+ "@leafygreen-ui/drawer": "^5.2.3",
50
50
  "@leafygreen-ui/emotion": "^5.2.0",
51
51
  "@leafygreen-ui/guide-cue": "^8.2.0",
52
- "@leafygreen-ui/hooks": "^9.3.0",
52
+ "@leafygreen-ui/hooks": "^9.3.1",
53
53
  "@leafygreen-ui/icon": "^14.8.0",
54
- "@leafygreen-ui/icon-button": "^17.1.4",
55
- "@leafygreen-ui/info-sprinkle": "^5.0.10",
56
- "@leafygreen-ui/input-option": "^4.1.4",
54
+ "@leafygreen-ui/icon-button": "^17.1.5",
55
+ "@leafygreen-ui/info-sprinkle": "^5.0.11",
56
+ "@leafygreen-ui/input-option": "^4.1.5",
57
57
  "@leafygreen-ui/leafygreen-provider": "^5.0.4",
58
58
  "@leafygreen-ui/logo": "^11.1.0",
59
- "@leafygreen-ui/marketing-modal": "^8.1.7",
60
- "@leafygreen-ui/menu": "^33.1.0",
61
- "@leafygreen-ui/modal": "^21.0.0",
59
+ "@leafygreen-ui/marketing-modal": "^8.2.1",
60
+ "@leafygreen-ui/menu": "^33.2.1",
61
+ "@leafygreen-ui/modal": "^22.0.1",
62
62
  "@leafygreen-ui/palette": "^5.0.2",
63
- "@leafygreen-ui/pipeline": "^8.0.9",
63
+ "@leafygreen-ui/pipeline": "^8.0.10",
64
64
  "@leafygreen-ui/polymorphic": "^3.1.0",
65
- "@leafygreen-ui/popover": "^14.3.1",
65
+ "@leafygreen-ui/popover": "^14.3.2",
66
66
  "@leafygreen-ui/portal": "^7.1.0",
67
- "@leafygreen-ui/progress-bar": "^1.0.7",
68
- "@leafygreen-ui/radio-box-group": "^15.0.10",
69
- "@leafygreen-ui/radio-group": "^13.0.11",
70
- "@leafygreen-ui/search-input": "^6.1.2",
71
- "@leafygreen-ui/segmented-control": "^11.0.12",
72
- "@leafygreen-ui/select": "^17.0.2",
73
- "@leafygreen-ui/skeleton-loader": "^3.0.10",
74
- "@leafygreen-ui/split-button": "^6.3.0",
75
- "@leafygreen-ui/table": "^15.2.2",
76
- "@leafygreen-ui/tabs": "^17.0.9",
77
- "@leafygreen-ui/text-area": "^12.1.4",
78
- "@leafygreen-ui/text-input": "^16.2.2",
79
- "@leafygreen-ui/toast": "^8.1.2",
80
- "@leafygreen-ui/toggle": "^12.1.4",
81
- "@leafygreen-ui/tokens": "^4.2.1",
82
- "@leafygreen-ui/tooltip": "^14.3.0",
83
- "@leafygreen-ui/typography": "^22.2.3",
84
- "@lg-chat/chat-window": "^6.0.0",
85
- "@lg-chat/input-bar": "^12.2.0",
67
+ "@leafygreen-ui/progress-bar": "^1.0.8",
68
+ "@leafygreen-ui/radio-box-group": "^15.0.11",
69
+ "@leafygreen-ui/radio-group": "^13.0.12",
70
+ "@leafygreen-ui/search-input": "^6.1.3",
71
+ "@leafygreen-ui/segmented-control": "^11.1.0",
72
+ "@leafygreen-ui/select": "^17.0.3",
73
+ "@leafygreen-ui/skeleton-loader": "^3.0.11",
74
+ "@leafygreen-ui/split-button": "^6.3.1",
75
+ "@leafygreen-ui/table": "^15.2.3",
76
+ "@leafygreen-ui/tabs": "^17.0.11",
77
+ "@leafygreen-ui/text-area": "^12.1.5",
78
+ "@leafygreen-ui/text-input": "^16.2.3",
79
+ "@leafygreen-ui/toast": "^8.1.3",
80
+ "@leafygreen-ui/toggle": "^12.1.5",
81
+ "@leafygreen-ui/tokens": "^4.2.2",
82
+ "@leafygreen-ui/tooltip": "^14.3.1",
83
+ "@leafygreen-ui/typography": "^22.2.4",
84
+ "@lg-chat/chat-window": "^6.0.2",
85
+ "@lg-chat/input-bar": "^12.2.2",
86
86
  "@lg-chat/leafygreen-chat-provider": "^6.0.0",
87
- "@lg-chat/message": "^10.2.0",
88
- "@lg-chat/message-prompts": "^4.2.0",
89
- "@mongodb-js/compass-context-menu": "^0.3.4",
90
- "@mongodb-js/diagramming": "^2.3.1",
87
+ "@lg-chat/message": "^12.0.0",
88
+ "@lg-chat/message-prompts": "^4.2.2",
89
+ "@mongodb-js/compass-context-menu": "^0.3.6",
90
+ "@mongodb-js/diagramming": "^2.3.3",
91
91
  "@react-aria/interactions": "^3.9.1",
92
92
  "@react-aria/utils": "^3.13.1",
93
93
  "@react-aria/visually-hidden": "^3.3.1",
94
- "bson": "^6.10.4",
94
+ "bson": "^7.2.0",
95
95
  "focus-trap-react": "^9.0.2",
96
- "hadron-document": "^8.10.8",
97
- "hadron-type-checker": "^7.4.26",
96
+ "hadron-document": "^8.11.0",
97
+ "hadron-type-checker": "^7.5.0",
98
98
  "is-electron-renderer": "^2.0.1",
99
- "lodash": "^4.17.21",
100
- "mongodb-query-util": "^2.5.15",
99
+ "lodash": "^4.17.23",
100
+ "mongodb-query-util": "^2.6.0",
101
101
  "polished": "^4.2.2",
102
102
  "react": "^17.0.2",
103
103
  "react-dom": "^17.0.2",
@@ -109,11 +109,11 @@
109
109
  "devDependencies": {
110
110
  "@emotion/css": "^11.13.5",
111
111
  "@leafygreen-ui/lib": "^15.7.0",
112
- "@mongodb-js/eslint-config-compass": "^1.4.15",
112
+ "@mongodb-js/eslint-config-compass": "^1.4.17",
113
113
  "@mongodb-js/mocha-config-compass": "^1.7.5",
114
114
  "@mongodb-js/prettier-config-compass": "^1.2.9",
115
- "@mongodb-js/testing-library-compass": "^1.4.3",
116
- "@mongodb-js/tsconfig-compass": "^1.2.13",
115
+ "@mongodb-js/testing-library-compass": "^1.5.0",
116
+ "@mongodb-js/tsconfig-compass": "^1.2.14",
117
117
  "@types/chai": "^4.2.21",
118
118
  "@types/chai-dom": "^0.0.10",
119
119
  "@types/mocha": "^9.0.0",
@@ -132,5 +132,5 @@
132
132
  "publishConfig": {
133
133
  "access": "public"
134
134
  },
135
- "gitHead": "b7a09008277252a5f8946d6af0ed8d88b45e3441"
135
+ "gitHead": "3473b2aeed26412f25423caf7f1f7ca848665e34"
136
136
  }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { ButtonProps } from '@leafygreen-ui/button';
3
- declare function ModalFooterButton({ className, ...props }: ButtonProps): React.JSX.Element;
4
- export { ModalFooterButton };
5
- //# sourceMappingURL=modal-footer-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal-footer-button.d.ts","sourceRoot":"","sources":["../../../src/components/modals/modal-footer-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAyBzD,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,qBAY9D;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ModalFooterButton = ModalFooterButton;
7
- const react_1 = __importDefault(require("react"));
8
- const emotion_1 = require("@leafygreen-ui/emotion");
9
- const leafygreen_1 = require("../leafygreen");
10
- const use_theme_1 = require("../../hooks/use-theme");
11
- const buttonStyle = {
12
- [use_theme_1.Themes.Light]: (0, emotion_1.css)({
13
- margin: '0 2px',
14
- '&:first-of-type': {
15
- margin: '0 0 0 5px',
16
- },
17
- '&:last-of-type': {
18
- margin: '0 5px 0 0',
19
- },
20
- }),
21
- [use_theme_1.Themes.Dark]: (0, emotion_1.css)({
22
- margin: '0 2px',
23
- '&:first-of-type': {
24
- margin: '0 0 0 4px',
25
- },
26
- '&:last-of-type': {
27
- margin: '0 4px 0 0',
28
- },
29
- }),
30
- };
31
- function ModalFooterButton({ className, ...props }) {
32
- const darkMode = (0, use_theme_1.useDarkMode)();
33
- return (react_1.default.createElement(leafygreen_1.Button, { ...props, className: (0, emotion_1.cx)(className, buttonStyle[darkMode ? use_theme_1.Themes.Dark : use_theme_1.Themes.Light]) }));
34
- }
35
- //# sourceMappingURL=modal-footer-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal-footer-button.js","sourceRoot":"","sources":["../../../src/components/modals/modal-footer-button.tsx"],"names":[],"mappings":";;;;;AAyCS,8CAAiB;AAzC1B,kDAA0B;AAC1B,oDAAiD;AAEjD,8CAAuC;AACvC,qDAA4D;AAE5D,MAAM,WAAW,GAAG;IAClB,CAAC,kBAAM,CAAC,KAAK,CAAC,EAAE,IAAA,aAAG,EAAC;QAClB,MAAM,EAAE,OAAO;QACf,iBAAiB,EAAE;YACjB,MAAM,EAAE,WAAW;SACpB;QACD,gBAAgB,EAAE;YAChB,MAAM,EAAE,WAAW;SACpB;KACF,CAAC;IACF,CAAC,kBAAM,CAAC,IAAI,CAAC,EAAE,IAAA,aAAG,EAAC;QACjB,MAAM,EAAE,OAAO;QACf,iBAAiB,EAAE;YACjB,MAAM,EAAE,WAAW;SACpB;QACD,gBAAgB,EAAE;YAChB,MAAM,EAAE,WAAW;SACpB;KACF,CAAC;CACH,CAAC;AAEF,SAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAe;IAC7D,MAAM,QAAQ,GAAG,IAAA,uBAAW,GAAE,CAAC;IAE/B,OAAO,CACL,8BAAC,mBAAM,OACD,KAAK,EACT,SAAS,EAAE,IAAA,YAAE,EACX,SAAS,EACT,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAM,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAM,CAAC,KAAK,CAAC,CACnD,GACD,CACH,CAAC;AACJ,CAAC"}