@jetbrains/ring-ui-built 7.0.79 → 7.0.80

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 (57) hide show
  1. package/components/_helpers/theme.js +90 -94
  2. package/components/alert/alert.js +0 -13
  3. package/components/alert-service/alert-service.js +0 -12
  4. package/components/auth/auth-core.js +1 -13
  5. package/components/auth/auth.js +1 -13
  6. package/components/auth/down-notification.js +0 -12
  7. package/components/auth/iframe-flow.js +1 -0
  8. package/components/auth/storage.js +1 -13
  9. package/components/auth-dialog/auth-dialog.js +1 -0
  10. package/components/auth-dialog-service/auth-dialog-service.js +1 -0
  11. package/components/avatar/fallback-avatar.js +78 -79
  12. package/components/avatar-stack/avatar-stack.js +1 -0
  13. package/components/clipboard/clipboard.js +1 -13
  14. package/components/collapse/collapse-content.js +2 -2
  15. package/components/collapse/collapse-control.js +34 -50
  16. package/components/collapse/collapse.js +2 -2
  17. package/components/confirm/confirm.js +1 -0
  18. package/components/confirm-service/confirm-service.js +1 -0
  19. package/components/date-picker/date-picker.js +1 -0
  20. package/components/date-picker/months.js +86 -100
  21. package/components/dialog/dialog.js +1 -0
  22. package/components/dropdown-menu/dropdown-menu.js +154 -238
  23. package/components/editable-heading/editable-heading.js +11 -11
  24. package/components/error-bubble/error-bubble.js +1 -0
  25. package/components/global/theme.d.ts +1 -0
  26. package/components/global/theme.js +0 -17
  27. package/components/global/use-event-callback.js +3 -2
  28. package/components/header/header.js +17 -17
  29. package/components/header/profile.js +1 -0
  30. package/components/header/smart-profile.js +13 -13
  31. package/components/login-dialog/login-dialog.js +1 -0
  32. package/components/login-dialog/service.js +1 -0
  33. package/components/old-browsers-message/white-list.js +2 -2
  34. package/components/pager/pager.js +1 -0
  35. package/components/popup/popup.js +49 -43
  36. package/components/popup-menu/popup-menu.js +1 -0
  37. package/components/query-assist/query-assist.js +1 -0
  38. package/components/select/select-popup.js +1 -0
  39. package/components/select/select.js +1 -0
  40. package/components/slider/slider.js +289 -366
  41. package/components/storage/storage-local.js +1 -13
  42. package/components/storage/storage.js +1 -13
  43. package/components/style.css +1 -1
  44. package/components/tabs/collapsible-more.js +12 -12
  45. package/components/tabs/collapsible-tabs.js +191 -205
  46. package/components/tabs/dumb-tabs.js +1 -0
  47. package/components/tabs/smart-tabs.js +1 -0
  48. package/components/tabs/tabs.js +1 -0
  49. package/components/tags-input/tags-input.js +1 -0
  50. package/components/upload/upload.js +31 -8
  51. package/components/user-agreement/service.js +11 -11
  52. package/components/user-agreement/user-agreement.js +1 -0
  53. package/components/user-card/card.js +5 -5
  54. package/components/user-card/smart-user-card-tooltip.js +1 -1
  55. package/components/user-card/tooltip.js +1 -1
  56. package/components/user-card/user-card.js +8 -8
  57. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { c } from 'react-compiler-runtime';
2
- import { forwardRef, cloneElement } from 'react';
2
+ import { forwardRef, useState, cloneElement } from 'react';
3
3
  import List, { ActiveItemContext } from '../list/list.js';
4
4
  import Dropdown from '../dropdown/dropdown.js';
5
5
  import PopupMenu from '../popup-menu/popup-menu.js';
@@ -62,184 +62,87 @@ import '../popup/position.js';
62
62
  import '../popup/popup.consts.js';
63
63
  import '../popup/popup.target.js';
64
64
  import '../popup/position-css.js';
65
+ import '../_helpers/theme.js';
65
66
 
66
67
  const defaultAriaLabel = 'Dropdown menu';
67
68
  function DropdownAnchorWrapper(t0) {
68
- const $ = c(42);
69
- if ($[0] !== "076e125e8654456b618d14deb2437497d9eebaa8b8ebdc71623c5e704febc194") {
70
- for (let $i = 0; $i < 42; $i += 1) {
69
+ const $ = c(4);
70
+ if ($[0] !== "0926e12cd4fd28a8347702e5d2e46598e80e29bc205f01f12156ff6e80fd64e8") {
71
+ for (let $i = 0; $i < 4; $i += 1) {
71
72
  $[$i] = Symbol.for("react.memo_cache_sentinel");
72
73
  }
73
- $[0] = "076e125e8654456b618d14deb2437497d9eebaa8b8ebdc71623c5e704febc194";
74
- }
75
- let active;
76
- let activeListItemId;
77
- let anchor;
78
- let listId;
79
- let pinned;
80
- let restProps;
81
- if ($[1] !== t0) {
82
- ({
83
- anchor,
84
- pinned,
85
- active,
86
- activeListItemId,
87
- listId,
88
- ...restProps
89
- } = t0);
90
- $[1] = t0;
91
- $[2] = active;
92
- $[3] = activeListItemId;
93
- $[4] = anchor;
94
- $[5] = listId;
95
- $[6] = pinned;
96
- $[7] = restProps;
97
- } else {
98
- active = $[2];
99
- activeListItemId = $[3];
100
- anchor = $[4];
101
- listId = $[5];
102
- pinned = $[6];
103
- restProps = $[7];
74
+ $[0] = "0926e12cd4fd28a8347702e5d2e46598e80e29bc205f01f12156ff6e80fd64e8";
104
75
  }
105
76
  let t1;
106
- if ($[8] !== listId) {
107
- t1 = listId ? {
108
- "aria-haspopup": true
109
- } : {};
110
- $[8] = listId;
111
- $[9] = t1;
112
- } else {
113
- t1 = $[9];
114
- }
115
77
  let t2;
116
- if ($[10] !== activeListItemId || $[11] !== listId) {
117
- t2 = activeListItemId ? {
118
- "aria-activedescendant": activeListItemId,
119
- "aria-owns": listId
120
- } : {};
121
- $[10] = activeListItemId;
122
- $[11] = listId;
123
- $[12] = t2;
124
- } else {
125
- t2 = $[12];
126
- }
127
- let t3;
128
- if ($[13] !== active) {
129
- t3 = active ? {
130
- "aria-expanded": true
131
- } : {};
132
- $[13] = active;
133
- $[14] = t3;
134
- } else {
135
- t3 = $[14];
136
- }
137
- let t4;
138
- if ($[15] !== t1 || $[16] !== t2 || $[17] !== t3) {
139
- t4 = {
140
- ...t1,
141
- ...t2,
142
- ...t3
143
- };
144
- $[15] = t1;
145
- $[16] = t2;
146
- $[17] = t3;
147
- $[18] = t4;
148
- } else {
149
- t4 = $[18];
150
- }
151
- const anchorAriaProps = t4;
152
- let t5;
153
- if ($[19] !== active || $[20] !== anchorAriaProps || $[21] !== pinned || $[22] !== restProps) {
154
- t5 = {
155
- active,
156
- pinned,
157
- ...restProps,
158
- ...anchorAriaProps
159
- };
160
- $[19] = active;
161
- $[20] = anchorAriaProps;
162
- $[21] = pinned;
163
- $[22] = restProps;
164
- $[23] = t5;
165
- } else {
166
- t5 = $[23];
167
- }
168
- const anchorProps = t5;
169
- const t6 = `${anchorProps.pinned}`;
170
- let t7;
171
- if ($[24] !== anchorProps || $[25] !== t6) {
172
- t7 = {
173
- ...anchorProps,
174
- pinned: t6
175
- };
176
- $[24] = anchorProps;
177
- $[25] = t6;
178
- $[26] = t7;
179
- } else {
180
- t7 = $[26];
181
- }
182
- const anchorComponentProps = t7;
183
- if (typeof anchor === "string") {
184
- let t8;
185
- if ($[27] !== anchor || $[28] !== anchorComponentProps) {
186
- t8 = /*#__PURE__*/jsx(Anchor, {
187
- ...anchorComponentProps,
188
- children: anchor
189
- });
190
- $[27] = anchor;
191
- $[28] = anchorComponentProps;
192
- $[29] = t8;
193
- } else {
194
- t8 = $[29];
195
- }
196
- return t8;
197
- }
198
- if (typeof anchor === "function") {
199
- let t8;
200
- if ($[30] !== active || $[31] !== anchor || $[32] !== anchorAriaProps || $[33] !== pinned || $[34] !== restProps) {
201
- t8 = anchor({
202
- active,
78
+ if ($[1] !== t0) {
79
+ t2 = Symbol.for("react.early_return_sentinel");
80
+ bb0: {
81
+ const {
82
+ anchor,
203
83
  pinned,
84
+ active,
85
+ activeListItemId,
86
+ listId,
204
87
  ...restProps
205
- }, anchorAriaProps);
206
- $[30] = active;
207
- $[31] = anchor;
208
- $[32] = anchorAriaProps;
209
- $[33] = pinned;
210
- $[34] = restProps;
211
- $[35] = t8;
212
- } else {
213
- t8 = $[35];
214
- }
215
- return t8;
216
- }
217
- if (!isArray(anchor)) {
218
- const t8 = typeof anchor.type === "string" ? anchorAriaProps : anchorComponentProps;
219
- let t9;
220
- if ($[36] !== anchor || $[37] !== t8) {
221
- t9 = /*#__PURE__*/cloneElement(anchor, t8);
222
- $[36] = anchor;
223
- $[37] = t8;
224
- $[38] = t9;
225
- } else {
226
- t9 = $[38];
88
+ } = t0;
89
+ const anchorAriaProps = {
90
+ ...(listId ? {
91
+ "aria-haspopup": true
92
+ } : {}),
93
+ ...(activeListItemId ? {
94
+ "aria-activedescendant": activeListItemId,
95
+ "aria-owns": listId
96
+ } : {}),
97
+ ...(active ? {
98
+ "aria-expanded": true
99
+ } : {})
100
+ };
101
+ const anchorProps = {
102
+ active,
103
+ pinned,
104
+ ...restProps,
105
+ ...anchorAriaProps
106
+ };
107
+ const anchorComponentProps = {
108
+ ...anchorProps,
109
+ pinned: `${anchorProps.pinned}`
110
+ };
111
+ if (typeof anchor === "string") {
112
+ t2 = /*#__PURE__*/jsx(Anchor, {
113
+ ...anchorComponentProps,
114
+ children: anchor
115
+ });
116
+ break bb0;
117
+ }
118
+ if (typeof anchor === "function") {
119
+ t2 = anchor({
120
+ active,
121
+ pinned,
122
+ ...restProps
123
+ }, anchorAriaProps);
124
+ break bb0;
125
+ }
126
+ if (!isArray(anchor)) {
127
+ t2 = /*#__PURE__*/cloneElement(anchor, typeof anchor.type === "string" ? anchorAriaProps : anchorComponentProps);
128
+ break bb0;
129
+ }
130
+ t1 = /*#__PURE__*/jsx("div", {
131
+ ...anchorAriaProps,
132
+ children: anchor
133
+ });
227
134
  }
228
- return t9;
229
- }
230
- let t8;
231
- if ($[39] !== anchor || $[40] !== anchorAriaProps) {
232
- t8 = /*#__PURE__*/jsx("div", {
233
- ...anchorAriaProps,
234
- children: anchor
235
- });
236
- $[39] = anchor;
237
- $[40] = anchorAriaProps;
238
- $[41] = t8;
135
+ $[1] = t0;
136
+ $[2] = t1;
137
+ $[3] = t2;
239
138
  } else {
240
- t8 = $[41];
139
+ t1 = $[2];
140
+ t2 = $[3];
141
+ }
142
+ if (t2 !== Symbol.for("react.early_return_sentinel")) {
143
+ return t2;
241
144
  }
242
- return t8;
145
+ return t1;
243
146
  }
244
147
  function renderDropdownMenuChildren({
245
148
  children,
@@ -256,12 +159,12 @@ function renderDropdownMenuChildren({
256
159
  });
257
160
  }
258
161
  const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(t0, forwardedRef) {
259
- const $ = c(29);
260
- if ($[0] !== "076e125e8654456b618d14deb2437497d9eebaa8b8ebdc71623c5e704febc194") {
261
- for (let $i = 0; $i < 29; $i += 1) {
162
+ const $ = c(35);
163
+ if ($[0] !== "0926e12cd4fd28a8347702e5d2e46598e80e29bc205f01f12156ff6e80fd64e8") {
164
+ for (let $i = 0; $i < 35; $i += 1) {
262
165
  $[$i] = Symbol.for("react.memo_cache_sentinel");
263
166
  }
264
- $[0] = "076e125e8654456b618d14deb2437497d9eebaa8b8ebdc71623c5e704febc194";
167
+ $[0] = "0926e12cd4fd28a8347702e5d2e46598e80e29bc205f01f12156ff6e80fd64e8";
265
168
  }
266
169
  let anchor;
267
170
  let ariaLabel;
@@ -301,96 +204,109 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(t0, forwarded
301
204
  onSelect = $[8];
302
205
  restDropdownProps = $[9];
303
206
  }
207
+ const [uid] = useState(_temp);
208
+ const listId = id || uid;
209
+ let T0;
210
+ let T1;
304
211
  let t1;
305
- if ($[10] !== id) {
306
- t1 = id || getUID("dropdown-menu-list");
307
- $[10] = id;
308
- $[11] = t1;
309
- } else {
310
- t1 = $[11];
311
- }
312
- const listId = t1;
313
- const t2 = ariaLabel || defaultAriaLabel;
212
+ let t2;
314
213
  let t3;
315
- if ($[12] !== data || $[13] !== forwardedRef || $[14] !== listId || $[15] !== menuProps || $[16] !== onSelect || $[17] !== t2) {
316
- t3 = {
214
+ if ($[10] !== anchor || $[11] !== ariaLabel || $[12] !== children || $[13] !== data || $[14] !== forwardedRef || $[15] !== listId || $[16] !== menuProps || $[17] !== onSelect || $[18] !== restDropdownProps) {
215
+ const popupMenuProps = {
317
216
  ref: forwardedRef,
318
217
  id: listId,
319
- ariaLabel: t2,
218
+ ariaLabel: ariaLabel || defaultAriaLabel,
320
219
  closeOnSelect: true,
321
220
  activateFirstItem: true,
322
221
  data,
323
222
  onSelect,
324
223
  ...menuProps
325
224
  };
326
- $[12] = data;
327
- $[13] = forwardedRef;
328
- $[14] = listId;
329
- $[15] = menuProps;
330
- $[16] = onSelect;
331
- $[17] = t2;
332
- $[18] = t3;
333
- } else {
334
- t3 = $[18];
335
- }
336
- const popupMenuProps = t3;
337
- let t4;
338
- if ($[19] !== anchor || $[20] !== listId) {
339
- t4 = t5 => {
340
- const {
341
- pinned,
342
- active,
343
- ...restAnchorProps
344
- } = t5;
345
- return /*#__PURE__*/jsx(ActiveItemContext.ValueContext.Consumer, {
346
- children: activeItemId => /*#__PURE__*/jsx(DropdownAnchorWrapper, {
347
- anchor: anchor,
348
- pinned: pinned,
349
- active: active,
350
- activeListItemId: activeItemId,
351
- listId: listId,
225
+ T1 = ActiveItemContext.Provider;
226
+ T0 = Dropdown;
227
+ if ($[24] !== anchor || $[25] !== listId) {
228
+ t1 = t4 => {
229
+ const {
230
+ pinned,
231
+ active,
352
232
  ...restAnchorProps
353
- })
354
- });
355
- };
356
- $[19] = anchor;
357
- $[20] = listId;
358
- $[21] = t4;
359
- } else {
360
- t4 = $[21];
361
- }
362
- let t5;
363
- if ($[22] !== children || $[23] !== popupMenuProps) {
364
- t5 = renderDropdownMenuChildren({
233
+ } = t4;
234
+ return /*#__PURE__*/jsx(ActiveItemContext.ValueContext.Consumer, {
235
+ children: activeItemId => /*#__PURE__*/jsx(DropdownAnchorWrapper, {
236
+ anchor: anchor,
237
+ pinned: pinned,
238
+ active: active,
239
+ activeListItemId: activeItemId,
240
+ listId: listId,
241
+ ...restAnchorProps
242
+ })
243
+ });
244
+ };
245
+ $[24] = anchor;
246
+ $[25] = listId;
247
+ $[26] = t1;
248
+ } else {
249
+ t1 = $[26];
250
+ }
251
+ t2 = restDropdownProps;
252
+ t3 = renderDropdownMenuChildren({
365
253
  children,
366
254
  popupMenuProps
367
255
  });
368
- $[22] = children;
369
- $[23] = popupMenuProps;
370
- $[24] = t5;
256
+ $[10] = anchor;
257
+ $[11] = ariaLabel;
258
+ $[12] = children;
259
+ $[13] = data;
260
+ $[14] = forwardedRef;
261
+ $[15] = listId;
262
+ $[16] = menuProps;
263
+ $[17] = onSelect;
264
+ $[18] = restDropdownProps;
265
+ $[19] = T0;
266
+ $[20] = T1;
267
+ $[21] = t1;
268
+ $[22] = t2;
269
+ $[23] = t3;
270
+ } else {
271
+ T0 = $[19];
272
+ T1 = $[20];
273
+ t1 = $[21];
274
+ t2 = $[22];
275
+ t3 = $[23];
276
+ }
277
+ let t4;
278
+ if ($[27] !== T0 || $[28] !== t1 || $[29] !== t2 || $[30] !== t3) {
279
+ t4 = /*#__PURE__*/jsx(T0, {
280
+ anchor: t1,
281
+ ...t2,
282
+ children: t3
283
+ });
284
+ $[27] = T0;
285
+ $[28] = t1;
286
+ $[29] = t2;
287
+ $[30] = t3;
288
+ $[31] = t4;
371
289
  } else {
372
- t5 = $[24];
290
+ t4 = $[31];
373
291
  }
374
- let t6;
375
- if ($[25] !== restDropdownProps || $[26] !== t4 || $[27] !== t5) {
376
- t6 = /*#__PURE__*/jsx(ActiveItemContext.Provider, {
377
- children: /*#__PURE__*/jsx(Dropdown, {
378
- anchor: t4,
379
- ...restDropdownProps,
380
- children: t5
381
- })
292
+ let t5;
293
+ if ($[32] !== T1 || $[33] !== t4) {
294
+ t5 = /*#__PURE__*/jsx(T1, {
295
+ children: t4
382
296
  });
383
- $[25] = restDropdownProps;
384
- $[26] = t4;
385
- $[27] = t5;
386
- $[28] = t6;
297
+ $[32] = T1;
298
+ $[33] = t4;
299
+ $[34] = t5;
387
300
  } else {
388
- t6 = $[28];
301
+ t5 = $[34];
389
302
  }
390
- return t6;
303
+ return t5;
391
304
  });
392
305
  var DropdownMenu$1 = Object.assign(DropdownMenu, {
393
306
  ListProps: List.ListProps
394
307
  });
308
+ function _temp() {
309
+ return getUID("dropdown-menu-list");
310
+ }
395
311
 
396
312
  export { DropdownMenu$1 as default };
@@ -7,6 +7,7 @@ import { Button } from '../button/button.js';
7
7
  import { S as Size, i as inputStyles } from '../_helpers/input.js';
8
8
  import getUID from '../global/get-uid.js';
9
9
  import Shortcuts from '../shortcuts/shortcuts.js';
10
+ import useEventCallback from '../global/use-event-callback.js';
10
11
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
11
12
  import 'util-deprecate';
12
13
  import '../_helpers/heading.js';
@@ -38,11 +39,11 @@ function noop() {}
38
39
  // eslint-disable-next-line complexity
39
40
  const EditableHeading = props => {
40
41
  const $ = c(129);
41
- if ($[0] !== "fa5dbeebbdcff2c9ff069f75420e1602116bbe04977ffad50d824f81650995a9") {
42
+ if ($[0] !== "337405178e721c40ff96461e6d67ef716cea1d26e0445aab59e026d687eab71d") {
42
43
  for (let $i = 0; $i < 129; $i += 1) {
43
44
  $[$i] = Symbol.for("react.memo_cache_sentinel");
44
45
  }
45
- $[0] = "fa5dbeebbdcff2c9ff069f75420e1602116bbe04977ffad50d824f81650995a9";
46
+ $[0] = "337405178e721c40ff96461e6d67ef716cea1d26e0445aab59e026d687eab71d";
46
47
  }
47
48
  let children;
48
49
  let className;
@@ -207,24 +208,23 @@ const EditableHeading = props => {
207
208
  const isSaveDisabled = t15;
208
209
  const isCancelDisabled = isSaving;
209
210
  const isShortcutsDisabled = !isInFocus || isSaving;
210
- let map;
211
+ let shortcutsMap;
211
212
  if ($[36] !== isCancelDisabled || $[37] !== isSaveDisabled || $[38] !== onCancel || $[39] !== onSave) {
212
- map = {};
213
+ shortcutsMap = {};
213
214
  if (!isSaveDisabled) {
214
- map.enter = onSave;
215
+ shortcutsMap.enter = onSave;
215
216
  }
216
217
  if (isCancelDisabled) {
217
- map.esc = onCancel;
218
+ shortcutsMap.esc = onCancel;
218
219
  }
219
220
  $[36] = isCancelDisabled;
220
221
  $[37] = isSaveDisabled;
221
222
  $[38] = onCancel;
222
223
  $[39] = onSave;
223
- $[40] = map;
224
+ $[40] = shortcutsMap;
224
225
  } else {
225
- map = $[40];
226
+ shortcutsMap = $[40];
226
227
  }
227
- const shortcutsMap = map;
228
228
  const t16 = isEditing && size === Size.FULL;
229
229
  let t17;
230
230
  if ($[41] !== className || $[42] !== disabled || $[43] !== hasError || $[44] !== isEditing || $[45] !== isInSelectionMode || $[46] !== multiline || $[47] !== t16) {
@@ -325,7 +325,7 @@ const EditableHeading = props => {
325
325
  } else {
326
326
  t25 = $[62];
327
327
  }
328
- const onMouseMove = t25;
328
+ const onMouseMove = useEventCallback(t25);
329
329
  let t26;
330
330
  if ($[63] !== disabled || $[64] !== isInSelectionMode || $[65] !== isMouseDown || $[66] !== onEdit) {
331
331
  t26 = () => {
@@ -343,7 +343,7 @@ const EditableHeading = props => {
343
343
  } else {
344
344
  t26 = $[67];
345
345
  }
346
- const onMouseUp = t26;
346
+ const onMouseUp = useEventCallback(t26);
347
347
  let t27;
348
348
  if ($[68] !== checkValue || $[69] !== onFocus) {
349
349
  t27 = e => {
@@ -19,6 +19,7 @@ import '../global/configuration.js';
19
19
  import '../popup/position.js';
20
20
  import '../popup/popup.target.js';
21
21
  import '../popup/position-css.js';
22
+ import '../_helpers/theme.js';
22
23
 
23
24
  var styles = {"errorBubblePopup":"ring-error-bubble-errorBubblePopup","errorBubbleWrapper":"ring-error-bubble-errorBubbleWrapper","errorBubble":"ring-error-bubble-errorBubble"};
24
25
 
@@ -6,6 +6,7 @@ declare enum Theme {
6
6
  }
7
7
  export declare const ThemeContext: import("react").Context<{
8
8
  theme: Theme.LIGHT | Theme.DARK;
9
+ passToPopups?: boolean;
9
10
  }>;
10
11
  export declare const GLOBAL_DARK_CLASS_NAME = "ring-ui-theme-dark";
11
12
  export declare function useTheme(): Theme.LIGHT | Theme.DARK;
@@ -1,22 +1,5 @@
1
1
  import 'react-compiler-runtime';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import 'react-dom';
5
- import '../popup/popup.target.js';
6
- import '../popup/popup.js';
7
- import './get-uid.js';
8
4
  export { G as GLOBAL_DARK_CLASS_NAME, b as ThemeContext, a as ThemeProvider, W as WithThemeClasses, e as applyTheme, T as default, u as useTheme, c as useThemeClasses } from '../_helpers/theme.js';
9
5
  import 'react/jsx-runtime';
10
- import './schedule-raf.js';
11
- import './dom.js';
12
- import '../shortcuts/shortcuts.js';
13
- import '../shortcuts/core.js';
14
- import 'combokeys';
15
- import './sniffer.js';
16
- import 'sniffr';
17
- import './data-tests.js';
18
- import '../tab-trap/tab-trap.js';
19
- import './configuration.js';
20
- import '../popup/position.js';
21
- import '../popup/popup.consts.js';
22
- import '../popup/position-css.js';
@@ -1,13 +1,14 @@
1
1
  import { c } from 'react-compiler-runtime';
2
2
  import { useRef, useLayoutEffect } from 'react';
3
3
 
4
+ // TODO deprecate in favor of useEffectEvent after dropping support for React < 19.2
4
5
  function useEventCallback(fn) {
5
6
  const $ = c(4);
6
- if ($[0] !== "6d4062362887898e583cc15ffe3261e4c8e7c93150afb27f66c9b6c760b8aef8") {
7
+ if ($[0] !== "889dd896626d55d7ee8b6d837575138afdbc32f6790b79c2a3b63812dc174b4f") {
7
8
  for (let $i = 0; $i < 4; $i += 1) {
8
9
  $[$i] = Symbol.for("react.memo_cache_sentinel");
9
10
  }
10
- $[0] = "6d4062362887898e583cc15ffe3261e4c8e7c93150afb27f66c9b6c760b8aef8";
11
+ $[0] = "889dd896626d55d7ee8b6d837575138afdbc32f6790b79c2a3b63812dc174b4f";
11
12
  }
12
13
  const ref = useRef(null);
13
14
  let t0;
@@ -11,23 +11,6 @@ export { default as SmartProfile } from './smart-profile.js';
11
11
  export { default as Services } from './services.js';
12
12
  export { default as SmartServices } from './smart-services.js';
13
13
  import 'react-compiler-runtime';
14
- import 'react-dom';
15
- import '../popup/popup.target.js';
16
- import '../popup/popup.js';
17
- import '../global/get-uid.js';
18
- import '../global/schedule-raf.js';
19
- import '../global/dom.js';
20
- import '../shortcuts/shortcuts.js';
21
- import '../shortcuts/core.js';
22
- import 'combokeys';
23
- import '../global/sniffer.js';
24
- import 'sniffr';
25
- import '../global/data-tests.js';
26
- import '../tab-trap/tab-trap.js';
27
- import '../global/configuration.js';
28
- import '../popup/position.js';
29
- import '../popup/popup.consts.js';
30
- import '../popup/position-css.js';
31
14
  import '../icon/icon.js';
32
15
  import 'util-deprecate';
33
16
  import '../icon/icon.constants.js';
@@ -38,10 +21,13 @@ import '@jetbrains/icons/chevron-down';
38
21
  import '@jetbrains/icons/chevron-12px-down';
39
22
  import '../link/clickable-link.js';
40
23
  import '../global/controls-height.js';
24
+ import '../global/configuration.js';
41
25
  import '../_helpers/button.classes.js';
42
26
  import '../avatar/avatar.js';
43
27
  import '../global/url.js';
28
+ import '../global/dom.js';
44
29
  import '../avatar/fallback-avatar.js';
30
+ import '../global/get-uid.js';
45
31
  import '../avatar/avatar-size.js';
46
32
  import '../_helpers/avatar-info.js';
47
33
  import '../dropdown-menu/dropdown-menu.js';
@@ -51,6 +37,13 @@ import 'react-virtualized/dist/es/AutoSizer';
51
37
  import 'react-virtualized/dist/es/WindowScroller';
52
38
  import 'react-virtualized/dist/es/CellMeasurer';
53
39
  import 'memoize-one';
40
+ import '../global/data-tests.js';
41
+ import '../global/schedule-raf.js';
42
+ import '../shortcuts/shortcuts.js';
43
+ import '../shortcuts/core.js';
44
+ import 'combokeys';
45
+ import '../global/sniffer.js';
46
+ import 'sniffr';
54
47
  import '../global/create-stateful-context.js';
55
48
  import '../list/list-item.js';
56
49
  import '../checkbox/checkbox.js';
@@ -72,6 +65,13 @@ import '../dropdown/dropdown.js';
72
65
  import '../global/typescript-utils.js';
73
66
  import '../_helpers/anchor.js';
74
67
  import '../popup-menu/popup-menu.js';
68
+ import '../popup/popup.js';
69
+ import 'react-dom';
70
+ import '../tab-trap/tab-trap.js';
71
+ import '../popup/position.js';
72
+ import '../popup/popup.consts.js';
73
+ import '../popup/popup.target.js';
74
+ import '../popup/position-css.js';
75
75
  import '../i18n/i18n-context.js';
76
76
  import '../i18n/i18n.js';
77
77
  import '../alert-service/alert-service.js';
@@ -65,6 +65,7 @@ import '../popup/position.js';
65
65
  import '../popup/popup.consts.js';
66
66
  import '../popup/popup.target.js';
67
67
  import '../popup/position-css.js';
68
+ import '../_helpers/theme.js';
68
69
  import '../i18n/i18n.js';
69
70
 
70
71
  const rgItemType = PopupMenu.ListProps.Type.LINK;