@jetbrains/ring-ui 7.0.46 → 7.0.48

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.
@@ -11,7 +11,7 @@ function noop() { }
11
11
  const registerLanguage = memoize(async (language) => {
12
12
  const languageExports = await import(
13
13
  /* webpackChunkName: "highlight-[request]" */
14
- `highlight.js/lib/languages/${language}`);
14
+ `highlight.js/lib/languages/${language}.js`);
15
15
  highlight.registerLanguage(language, languageExports.default);
16
16
  });
17
17
  /**
@@ -239,7 +239,9 @@ export default class Popup extends PureComponent {
239
239
  _onDocumentClick = (evt) => {
240
240
  if ((this.container && evt.target instanceof Node && this.container.contains(evt.target)) ||
241
241
  !this._listenersEnabled ||
242
- (this.props.dontCloseOnAnchorClick && evt.target instanceof Node && this._getAnchor()?.contains(evt.target))) {
242
+ (this.props.dontCloseOnAnchorClick && evt.target instanceof Node && this._getAnchor()?.contains(evt.target)) ||
243
+ // ignore clicks in shadow DOM, e.g., Grammarly suggestions
244
+ (evt.target instanceof Element && evt.target.shadowRoot != null)) {
243
245
  return;
244
246
  }
245
247
  this.props.onOutsideClick(evt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "7.0.46",
3
+ "version": "7.0.48",
4
4
  "description": "JetBrains UI library",
5
5
  "author": {
6
6
  "name": "JetBrains"
@@ -97,7 +97,7 @@
97
97
  },
98
98
  "readmeFilename": "README.md",
99
99
  "devDependencies": {
100
- "@babel/cli": "^7.27.1",
100
+ "@babel/cli": "^7.27.2",
101
101
  "@babel/eslint-parser": "^7.27.1",
102
102
  "@csstools/css-parser-algorithms": "^3.0.4",
103
103
  "@csstools/stylelint-no-at-nest-rule": "^4.0.0",
@@ -109,63 +109,63 @@
109
109
  "@jetbrains/logos": "3.0.0-canary.734b213.0",
110
110
  "@jetbrains/rollup-css-plugin": "./packages/rollup-css-plugin",
111
111
  "@jetbrains/stylelint-config": "^4.0.2",
112
- "@primer/octicons": "^19.15.1",
112
+ "@primer/octicons": "^19.15.2",
113
113
  "@rollup/plugin-babel": "^6.0.4",
114
114
  "@rollup/plugin-json": "^6.1.0",
115
115
  "@rollup/plugin-node-resolve": "^16.0.1",
116
116
  "@rollup/plugin-replace": "^6.0.2",
117
- "@storybook/addon-a11y": "8.6.12",
118
- "@storybook/addon-docs": "8.6.12",
119
- "@storybook/addon-essentials": "8.6.12",
120
- "@storybook/addon-themes": "^8.6.12",
121
- "@storybook/components": "8.6.12",
117
+ "@storybook/addon-a11y": "8.6.14",
118
+ "@storybook/addon-docs": "8.6.14",
119
+ "@storybook/addon-essentials": "8.6.14",
120
+ "@storybook/addon-themes": "^8.6.14",
121
+ "@storybook/components": "8.6.14",
122
122
  "@storybook/csf": "^0.1.13",
123
- "@storybook/manager-api": "8.6.12",
124
- "@storybook/preview-api": "8.6.12",
125
- "@storybook/react": "8.6.12",
126
- "@storybook/react-webpack5": "8.6.12",
123
+ "@storybook/manager-api": "8.6.14",
124
+ "@storybook/preview-api": "8.6.14",
125
+ "@storybook/react": "8.6.14",
126
+ "@storybook/react-webpack5": "8.6.14",
127
127
  "@storybook/test-runner": "^0.22.0",
128
- "@storybook/theming": "8.6.12",
128
+ "@storybook/theming": "8.6.14",
129
129
  "@testing-library/dom": "^10.4.0",
130
130
  "@testing-library/react": "^16.3.0",
131
131
  "@testing-library/user-event": "^14.6.1",
132
- "@types/chai": "^5.2.1",
132
+ "@types/chai": "^5.2.2",
133
133
  "@types/chai-as-promised": "^8.0.2",
134
134
  "@types/chai-dom": "1.11.3",
135
135
  "@types/eslint__js": "^8.42.3",
136
136
  "@types/markdown-it": "^14.1.2",
137
- "@types/react": "^19.1.2",
138
- "@types/react-dom": "^19.1.3",
137
+ "@types/react": "^19.1.5",
138
+ "@types/react-dom": "^19.1.5",
139
139
  "@types/sinon": "^17.0.4",
140
140
  "@types/sinon-chai": "^4.0.0",
141
141
  "@types/webpack-env": "^1.18.8",
142
- "@vitejs/plugin-react": "^4.4.1",
143
- "@vitest/eslint-plugin": "^1.1.44",
142
+ "@vitejs/plugin-react": "^4.5.0",
143
+ "@vitest/eslint-plugin": "^1.2.1",
144
144
  "acorn": "^8.14.1",
145
145
  "axe-playwright": "^2.1.0",
146
146
  "babel-plugin-require-context-hook": "^1.0.0",
147
- "caniuse-lite": "^1.0.30001716",
147
+ "caniuse-lite": "^1.0.30001718",
148
148
  "chai": "^5.2.0",
149
149
  "chai-as-promised": "^8.0.1",
150
150
  "chai-dom": "^1.12.1",
151
151
  "cheerio": "^1.0.0",
152
- "chromatic": "^11.28.2",
152
+ "chromatic": "^12.0.0",
153
153
  "core-js": "^3.42.0",
154
154
  "cpy-cli": "^5.0.0",
155
155
  "dotenv-cli": "^8.0.0",
156
- "eslint": "^9.25.1",
157
- "eslint-config-prettier": "^10.1.2",
156
+ "eslint": "^9.27.0",
157
+ "eslint-config-prettier": "^10.1.5",
158
158
  "eslint-formatter-jslint-xml": "^8.40.0",
159
159
  "eslint-import-resolver-webpack": "^0.13.10",
160
160
  "eslint-plugin-import": "^2.31.0",
161
161
  "eslint-plugin-jsx-a11y": "^6.10.2",
162
- "eslint-plugin-prettier": "^5.2.6",
162
+ "eslint-plugin-prettier": "^5.4.0",
163
163
  "eslint-plugin-react": "^7.37.5",
164
164
  "eslint-plugin-react-hooks": "^5.2.0",
165
165
  "eslint-plugin-storybook": "^0.12.0",
166
166
  "events": "^3.3.0",
167
167
  "glob": "^11.0.2",
168
- "globals": "^16.0.0",
168
+ "globals": "^16.2.0",
169
169
  "html-webpack-plugin": "^5.6.3",
170
170
  "http-server": "^14.1.1",
171
171
  "husky": "^9.1.7",
@@ -173,7 +173,7 @@
173
173
  "jest": "~29.7.0",
174
174
  "jest-environment-jsdom": "^29.7.0",
175
175
  "jest-teamcity": "^1.12.0",
176
- "lint-staged": "^15.5.1",
176
+ "lint-staged": "^16.0.0",
177
177
  "markdown-it": "^14.1.0",
178
178
  "merge-options": "^3.0.4",
179
179
  "pinst": "^3.0.0",
@@ -183,22 +183,22 @@
183
183
  "react-dom": "^19.1.0",
184
184
  "regenerator-runtime": "^0.14.1",
185
185
  "rimraf": "^6.0.1",
186
- "rollup": "^4.40.1",
186
+ "rollup": "^4.41.1",
187
187
  "rollup-plugin-clear": "^2.0.7",
188
188
  "sinon": "^20.0.0",
189
189
  "sinon-chai": "^4.0.0",
190
190
  "storage-mock": "^2.1.0",
191
- "storybook": "8.6.12",
191
+ "storybook": "8.6.14",
192
192
  "stylelint": "^16.19.1",
193
193
  "svg-inline-loader": "^0.8.2",
194
194
  "teamcity-service-messages": "^0.1.14",
195
195
  "terser-webpack-plugin": "^5.3.14",
196
196
  "typescript": "~5.8.3",
197
- "typescript-eslint": "^8.31.1",
198
- "vitest": "^3.1.2",
197
+ "typescript-eslint": "^8.32.1",
198
+ "vitest": "^3.1.4",
199
199
  "vitest-teamcity-reporter": "^0.3.1",
200
200
  "wallaby-webpack": "^3.9.16",
201
- "webpack": "^5.99.7",
201
+ "webpack": "^5.99.9",
202
202
  "webpack-cli": "^6.0.1",
203
203
  "xmlappend": "^1.0.4"
204
204
  },