@mongodb-js/compass-components 1.7.0 → 1.8.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 (105) hide show
  1. package/lib/components/bson-value.d.ts +3 -3
  2. package/lib/components/bson-value.d.ts.map +1 -1
  3. package/lib/components/bson-value.js +4 -9
  4. package/lib/components/bson-value.js.map +1 -1
  5. package/lib/components/collapsible-field-set.d.ts +2 -2
  6. package/lib/components/collapsible-field-set.d.ts.map +1 -1
  7. package/lib/components/combobox/Combobox.d.ts +1 -1
  8. package/lib/components/combobox/Combobox.js +3 -3
  9. package/lib/components/combobox/Combobox.js.map +1 -1
  10. package/lib/components/combobox/Combobox.types.d.ts +10 -10
  11. package/lib/components/combobox/Combobox.types.d.ts.map +1 -1
  12. package/lib/components/combobox/utils/getNameAndValue.d.ts +1 -1
  13. package/lib/components/combobox/utils/getNameAndValue.d.ts.map +1 -1
  14. package/lib/components/combobox-with-custom-option.d.ts +10 -0
  15. package/lib/components/combobox-with-custom-option.d.ts.map +1 -0
  16. package/lib/components/combobox-with-custom-option.js +59 -0
  17. package/lib/components/combobox-with-custom-option.js.map +1 -0
  18. package/lib/components/content-with-fallback.d.ts +1 -1
  19. package/lib/components/content-with-fallback.d.ts.map +1 -1
  20. package/lib/components/document-list/auto-focus-context.d.ts +1 -1
  21. package/lib/components/document-list/auto-focus-context.d.ts.map +1 -1
  22. package/lib/components/empty-content.d.ts +1 -1
  23. package/lib/components/empty-content.d.ts.map +1 -1
  24. package/lib/components/error-boundary.d.ts +1 -1
  25. package/lib/components/error-boundary.d.ts.map +1 -1
  26. package/lib/components/file-input.d.ts +5 -8
  27. package/lib/components/file-input.d.ts.map +1 -1
  28. package/lib/components/file-input.js +29 -12
  29. package/lib/components/file-input.js.map +1 -1
  30. package/lib/components/horizontal-rule.d.ts +1 -1
  31. package/lib/components/icons/no-saved-items-icon.d.ts +1 -1
  32. package/lib/components/icons/no-saved-items-icon.d.ts.map +1 -1
  33. package/lib/components/index-icon.d.ts +1 -1
  34. package/lib/components/index-icon.d.ts.map +1 -1
  35. package/lib/components/index-keys-badge.d.ts +1 -1
  36. package/lib/components/index-keys-badge.d.ts.map +1 -1
  37. package/lib/components/inline-info-link.d.ts +1 -1
  38. package/lib/components/inline-info-link.d.ts.map +1 -1
  39. package/lib/components/interactive-popover.d.ts +1 -1
  40. package/lib/components/interactive-popover.d.ts.map +1 -1
  41. package/lib/components/item-action-controls.d.ts +10 -7
  42. package/lib/components/item-action-controls.d.ts.map +1 -1
  43. package/lib/components/item-action-controls.js +7 -7
  44. package/lib/components/item-action-controls.js.map +1 -1
  45. package/lib/components/list-editor.d.ts +1 -1
  46. package/lib/components/list-editor.d.ts.map +1 -1
  47. package/lib/components/modals/form-modal.d.ts +2 -2
  48. package/lib/components/modals/form-modal.d.ts.map +1 -1
  49. package/lib/components/modals/info-modal.d.ts +1 -1
  50. package/lib/components/modals/info-modal.d.ts.map +1 -1
  51. package/lib/components/modals/info-modal.js +2 -1
  52. package/lib/components/modals/info-modal.js.map +1 -1
  53. package/lib/components/modals/modal-body.d.ts +2 -2
  54. package/lib/components/modals/modal-body.d.ts.map +1 -1
  55. package/lib/components/modals/modal-header.d.ts +2 -2
  56. package/lib/components/modals/modal-header.d.ts.map +1 -1
  57. package/lib/components/more-options-toggle.d.ts +1 -1
  58. package/lib/components/more-options-toggle.d.ts.map +1 -1
  59. package/lib/components/more-options-toggle.js +4 -1
  60. package/lib/components/more-options-toggle.js.map +1 -1
  61. package/lib/components/placeholder.d.ts +1 -0
  62. package/lib/components/placeholder.d.ts.map +1 -1
  63. package/lib/components/placeholder.js +2 -1
  64. package/lib/components/placeholder.js.map +1 -1
  65. package/lib/components/store-connector.d.ts +1 -1
  66. package/lib/components/store-connector.d.ts.map +1 -1
  67. package/lib/components/tab-nav-bar.d.ts +1 -1
  68. package/lib/components/tab-nav-bar.d.ts.map +1 -1
  69. package/lib/components/tooltip.d.ts +3 -3
  70. package/lib/components/tooltip.d.ts.map +1 -1
  71. package/lib/components/virtual-grid.d.ts +5 -5
  72. package/lib/components/virtual-grid.d.ts.map +1 -1
  73. package/lib/components/workspace-container.d.ts +1 -1
  74. package/lib/components/workspace-container.d.ts.map +1 -1
  75. package/lib/components/workspace-tabs/tab.d.ts +2 -2
  76. package/lib/components/workspace-tabs/tab.d.ts.map +1 -1
  77. package/lib/components/workspace-tabs/workspace-tabs.d.ts +2 -2
  78. package/lib/components/workspace-tabs/workspace-tabs.d.ts.map +1 -1
  79. package/lib/hooks/use-confirmation.d.ts +1 -1
  80. package/lib/hooks/use-confirmation.d.ts.map +1 -1
  81. package/lib/hooks/use-effect-on-change.d.ts.map +1 -1
  82. package/lib/hooks/use-effect-on-change.js +11 -5
  83. package/lib/hooks/use-effect-on-change.js.map +1 -1
  84. package/lib/hooks/use-hotkeys.d.ts +1 -1
  85. package/lib/hooks/use-hotkeys.d.ts.map +1 -1
  86. package/lib/hooks/use-sort.d.ts +4 -4
  87. package/lib/hooks/use-sort.d.ts.map +1 -1
  88. package/lib/hooks/use-sort.js +1 -1
  89. package/lib/hooks/use-sort.js.map +1 -1
  90. package/lib/hooks/use-toast.d.ts +2 -1
  91. package/lib/hooks/use-toast.d.ts.map +1 -1
  92. package/lib/hooks/use-toast.js +8 -2
  93. package/lib/hooks/use-toast.js.map +1 -1
  94. package/lib/hooks/use-virtual-grid.d.ts.map +1 -1
  95. package/lib/hooks/use-virtual-grid.js +3 -4
  96. package/lib/hooks/use-virtual-grid.js.map +1 -1
  97. package/lib/index.d.ts +3 -1
  98. package/lib/index.d.ts.map +1 -1
  99. package/lib/index.js +5 -1
  100. package/lib/index.js.map +1 -1
  101. package/lib/utils/rafraf.d.ts +2 -0
  102. package/lib/utils/rafraf.d.ts.map +1 -0
  103. package/lib/utils/rafraf.js +18 -0
  104. package/lib/utils/rafraf.js.map +1 -0
  105. package/package.json +10 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-components",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "React Components used in Compass",
5
5
  "license": "SSPL",
6
6
  "main": "lib/index.js",
@@ -25,7 +25,7 @@
25
25
  "check": "npm run lint && npm run depcheck",
26
26
  "check-ci": "npm run check",
27
27
  "test": "mocha",
28
- "test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
28
+ "test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
29
29
  "test-watch": "npm run test -- --watch",
30
30
  "test-ci": "npm run test-cov",
31
31
  "reformat": "npm run prettier -- --write . && npm run eslint . --fix"
@@ -77,8 +77,8 @@
77
77
  "@react-stately/tooltip": "^3.0.5",
78
78
  "bson": "^5.0.1",
79
79
  "focus-trap-react": "^8.4.2",
80
- "hadron-document": "^8.1.2",
81
- "hadron-type-checker": "^7.0.1",
80
+ "hadron-document": "^8.2.0",
81
+ "hadron-type-checker": "^7.0.2",
82
82
  "is-electron-renderer": "^2.0.1",
83
83
  "lodash": "^4.17.21",
84
84
  "polished": "^4.2.2",
@@ -92,10 +92,10 @@
92
92
  "react-ace": "^9.5.0"
93
93
  },
94
94
  "devDependencies": {
95
- "@mongodb-js/eslint-config-compass": "^1.0.4",
96
- "@mongodb-js/mocha-config-compass": "^1.1.0",
95
+ "@mongodb-js/eslint-config-compass": "^1.0.5",
96
+ "@mongodb-js/mocha-config-compass": "^1.1.1",
97
97
  "@mongodb-js/prettier-config-compass": "^1.0.0",
98
- "@mongodb-js/tsconfig-compass": "^1.0.1",
98
+ "@mongodb-js/tsconfig-compass": "^1.0.2",
99
99
  "@testing-library/dom": "^8.11.1",
100
100
  "@testing-library/react": "^12.0.0",
101
101
  "@testing-library/react-hooks": "^7.0.2",
@@ -107,7 +107,7 @@
107
107
  "@types/reflux": "^6.4.3",
108
108
  "chai": "^4.3.4",
109
109
  "eslint": "^7.25.0",
110
- "mocha": "^8.4.0",
110
+ "mocha": "^10.2.0",
111
111
  "nyc": "^15.0.0",
112
112
  "prettier": "^2.7.1",
113
113
  "react": "^17.0.2",
@@ -116,7 +116,7 @@
116
116
  "reflux": "^0.4.1",
117
117
  "rimraf": "^3.0.2",
118
118
  "sinon": "^9.0.0",
119
- "typescript": "^4.8.3"
119
+ "typescript": "^5.0.4"
120
120
  },
121
121
  "repository": {
122
122
  "type": "git",
@@ -126,5 +126,5 @@
126
126
  "publishConfig": {
127
127
  "access": "public"
128
128
  },
129
- "gitHead": "fe181eedfcb07251b9b9a3dce8254a4941d74e42"
129
+ "gitHead": "e4f2643a437ce2407657a63246e303d13ce8297b"
130
130
  }