@jetbrains/ring-ui-built 7.0.124 → 8.0.0-beta.10

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 (262) hide show
  1. package/components/_helpers/anchor.js +1 -1
  2. package/components/_helpers/avatar-info.js +3 -5
  3. package/components/_helpers/caption.js +1 -1
  4. package/components/_helpers/icon-svg.js +37 -52
  5. package/components/_helpers/legacy-table.js +3 -0
  6. package/components/_helpers/tab-link.js +1 -1
  7. package/components/_helpers/table.js +2 -2
  8. package/components/_helpers/theme.js +49 -37
  9. package/components/alert/alert-actions.js +1 -1
  10. package/components/alert/alert-heading.js +1 -1
  11. package/components/alert/alert.js +2 -2
  12. package/components/alert-service/alert-service.js +2 -2
  13. package/components/auth/auth-core.js +2 -2
  14. package/components/auth/auth.js +2 -2
  15. package/components/auth/down-notification.js +2 -2
  16. package/components/auth/iframe-flow.js +1 -1
  17. package/components/auth/storage.js +2 -2
  18. package/components/auth-dialog/auth-dialog.js +2 -2
  19. package/components/auth-dialog-service/auth-dialog-service.js +2 -2
  20. package/components/avatar/avatar-info.js +1 -1
  21. package/components/avatar/avatar-size.d.ts +0 -4
  22. package/components/avatar/avatar-size.js +0 -4
  23. package/components/avatar/avatar.js +1 -8
  24. package/components/avatar/fallback-avatar.js +3 -48
  25. package/components/avatar-stack/avatar-stack.js +5 -5
  26. package/components/banner/banner.js +2 -2
  27. package/components/button/button.d.ts +0 -4
  28. package/components/button/button.js +4 -10
  29. package/components/button-group/button-group.js +1 -1
  30. package/components/button-toolbar/button-toolbar.js +1 -1
  31. package/components/checkbox/checkbox.d.ts +1 -1
  32. package/components/checkbox/checkbox.js +1 -2
  33. package/components/clipboard/clipboard.js +2 -2
  34. package/components/collapse/collapse-content.js +35 -43
  35. package/components/collapse/collapse-context.d.ts +1 -0
  36. package/components/collapse/collapse-context.js +1 -0
  37. package/components/collapse/collapse-control.js +5 -5
  38. package/components/collapse/collapse.js +34 -25
  39. package/components/collapsible-group/collapsible-group.d.ts +5 -1
  40. package/components/collapsible-group/collapsible-group.js +80 -98
  41. package/components/components/util-stories.js +63 -1
  42. package/components/confirm/confirm.js +2 -2
  43. package/components/confirm-service/confirm-service.js +4 -4
  44. package/components/contenteditable/contenteditable.js +4 -5
  45. package/components/control-help/control-help.js +1 -1
  46. package/components/control-label/control-label.js +1 -1
  47. package/components/data-list/data-list.d.ts +4 -4
  48. package/components/data-list/data-list.js +5 -5
  49. package/components/data-list/data-list.mock.d.ts +1 -1
  50. package/components/data-list/data-list.mock.js +2 -2
  51. package/components/data-list/item.d.ts +1 -1
  52. package/components/data-list/item.js +3 -3
  53. package/components/data-list/selection.d.ts +1 -1
  54. package/components/data-list/selection.js +2 -2
  55. package/components/data-list/title.js +1 -2
  56. package/components/date-picker/date-input.js +2 -2
  57. package/components/date-picker/date-picker.js +2 -3
  58. package/components/date-picker/date-popup.js +4 -5
  59. package/components/date-picker/month-names.js +1 -1
  60. package/components/date-picker/month-slider.js +1 -1
  61. package/components/date-picker/month.d.ts +0 -2
  62. package/components/date-picker/month.js +17 -18
  63. package/components/date-picker/months.js +43 -36
  64. package/components/date-picker/use-scroll-behavior.js +45 -45
  65. package/components/date-picker/weekdays.js +1 -1
  66. package/components/date-picker/years.js +61 -55
  67. package/components/dialog/dialog.d.ts +2 -2
  68. package/components/dialog/dialog.js +5 -5
  69. package/components/dropdown/anchor.js +3 -3
  70. package/components/dropdown/dropdown.js +3 -3
  71. package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
  72. package/components/dropdown-menu/dropdown-menu.js +63 -58
  73. package/components/editable-heading/editable-heading.d.ts +1 -2
  74. package/components/editable-heading/editable-heading.js +14 -13
  75. package/components/error-bubble/error-bubble.js +1 -1
  76. package/components/error-message/error-message.js +1 -2
  77. package/components/footer/footer.js +1 -1
  78. package/components/global/compose-refs.d.ts +2 -1
  79. package/components/global/compose-refs.js +44 -8
  80. package/components/global/configuration.d.ts +0 -5
  81. package/components/global/configuration.js +2 -10
  82. package/components/global/controls-height.js +1 -1
  83. package/components/global/create-stateful-context.js +11 -11
  84. package/components/global/focus-sensor-hoc.js +1 -0
  85. package/components/global/focus-with-temporary-tabindex.d.ts +11 -0
  86. package/components/global/focus-with-temporary-tabindex.js +23 -0
  87. package/components/global/intersection-observer-context.d.ts +46 -0
  88. package/components/global/intersection-observer-context.js +138 -0
  89. package/components/global/is-within-interactive-element.d.ts +6 -0
  90. package/components/global/is-within-interactive-element.js +11 -0
  91. package/components/global/is-within-navigable-element.d.ts +6 -0
  92. package/components/global/is-within-navigable-element.js +11 -0
  93. package/components/global/parse-css-duration.d.ts +5 -0
  94. package/components/global/parse-css-duration.js +14 -0
  95. package/components/global/rerender-hoc.d.ts +4 -2
  96. package/components/global/rerender-hoc.js +11 -24
  97. package/components/global/schedule-with-cleanup.d.ts +12 -0
  98. package/components/global/schedule-with-cleanup.js +36 -0
  99. package/components/{table/selection.d.ts → global/table-selection.d.ts} +15 -15
  100. package/components/{table/selection.js → global/table-selection.js} +5 -5
  101. package/components/global/theme.d.ts +4 -3
  102. package/components/global/theme.js +1 -1
  103. package/components/global/variables.interface.d.ts +0 -4
  104. package/components/header/header-icon.js +3 -3
  105. package/components/header/header.js +3 -3
  106. package/components/header/links.js +1 -1
  107. package/components/header/logo.js +1 -2
  108. package/components/header/profile.js +5 -5
  109. package/components/header/services.js +3 -3
  110. package/components/header/smart-profile.js +3 -3
  111. package/components/header/smart-services.js +3 -3
  112. package/components/heading/heading.js +1 -1
  113. package/components/i18n/i18n-context.js +4 -4
  114. package/components/icon/icon-svg.js +1 -2
  115. package/components/icon/icon.d.ts +0 -1
  116. package/components/icon/icon.js +2 -6
  117. package/components/icon/index.js +1 -2
  118. package/components/input/input.d.ts +1 -1
  119. package/components/input/input.js +3 -3
  120. package/components/internal/reorder-animation-context.js +159 -0
  121. package/components/internal/reorder-handle.js +750 -0
  122. package/components/internal/reorder-layout-context.js +141 -0
  123. package/components/internal/table-header.js +685 -0
  124. package/components/internal/virtualization.js +368 -0
  125. package/components/island/adaptive-island-hoc.js +3 -3
  126. package/components/island/content.d.ts +7 -2
  127. package/components/island/content.js +27 -18
  128. package/components/island/header.js +1 -1
  129. package/components/island/island.js +1 -1
  130. package/components/{table → legacy-table}/cell.js +1 -1
  131. package/components/{table → legacy-table}/header-cell.js +2 -3
  132. package/components/{table → legacy-table}/header.js +2 -3
  133. package/components/{table → legacy-table}/multitable.d.ts +1 -1
  134. package/components/{table → legacy-table}/row-with-focus-sensor.js +3 -3
  135. package/components/{table → legacy-table}/row.d.ts +1 -1
  136. package/components/{table → legacy-table}/row.js +5 -5
  137. package/components/legacy-table/selection-adapter.d.ts +6 -0
  138. package/components/{table → legacy-table}/selection-shortcuts-hoc.d.ts +5 -5
  139. package/components/{table → legacy-table}/simple-table.d.ts +2 -2
  140. package/components/{table → legacy-table}/simple-table.js +5 -5
  141. package/components/{table → legacy-table}/smart-table.d.ts +5 -5
  142. package/components/{table → legacy-table}/smart-table.js +6 -6
  143. package/components/legacy-table/table.d.ts +109 -0
  144. package/components/legacy-table/table.js +369 -0
  145. package/components/list/consts.d.ts +0 -1
  146. package/components/list/consts.js +0 -1
  147. package/components/list/list-item.js +3 -5
  148. package/components/list/list-users-groups-source.js +1 -2
  149. package/components/list/list.d.ts +0 -4
  150. package/components/list/list.js +1 -2
  151. package/components/login-dialog/login-dialog.js +3 -3
  152. package/components/login-dialog/service.js +2 -2
  153. package/components/message/message.js +1 -1
  154. package/components/pager/pager.js +3 -3
  155. package/components/popup/popup.js +1 -1
  156. package/components/popup/popup.target.d.ts +3 -2
  157. package/components/popup/popup.target.js +32 -28
  158. package/components/popup-menu/popup-menu.js +1 -1
  159. package/components/query-assist/query-assist-suggestions.js +1 -2
  160. package/components/query-assist/query-assist.d.ts +3 -1
  161. package/components/query-assist/query-assist.js +2 -2
  162. package/components/radio/radio-item.d.ts +3 -3
  163. package/components/radio/radio-item.js +33 -19
  164. package/components/radio/radio.d.ts +2 -2
  165. package/components/radio/radio.js +2 -2
  166. package/components/scrollable-section/scrollable-section.js +1 -1
  167. package/components/select/chevron-button.js +3 -3
  168. package/components/select/select-filter.js +3 -3
  169. package/components/select/select-popup.d.ts +3 -2
  170. package/components/select/select-popup.js +9 -4
  171. package/components/select/select.d.ts +6 -2
  172. package/components/select/select.js +5 -4
  173. package/components/selection-toolbar/selection-toolbar.d.ts +11 -0
  174. package/components/selection-toolbar/selection-toolbar.js +200 -0
  175. package/components/slider/slider.js +100 -97
  176. package/components/storage/storage-local.js +2 -2
  177. package/components/storage/storage.js +2 -2
  178. package/components/style.css +1 -1
  179. package/components/tab-trap/tab-trap.d.ts +3 -3
  180. package/components/tab-trap/tab-trap.js +83 -80
  181. package/components/table/default-item-renderer.d.ts +55 -0
  182. package/components/table/default-item-renderer.js +240 -0
  183. package/components/table/internal/reorder-animation-context.d.ts +21 -0
  184. package/components/table/internal/reorder-handle.d.ts +9 -0
  185. package/components/table/internal/reorder-layout-context.d.ts +16 -0
  186. package/components/table/internal/table-header.d.ts +1 -0
  187. package/components/table/internal/virtualization.d.ts +41 -0
  188. package/components/table/item-virtualization.d.ts +37 -0
  189. package/components/table/item-virtualization.js +73 -0
  190. package/components/table/reorder-animation.d.ts +37 -0
  191. package/components/table/reorder-animation.js +18 -0
  192. package/components/table/reorder-item-layout.d.ts +32 -0
  193. package/components/table/reorder-item-layout.js +57 -0
  194. package/components/table/table-const.d.ts +10 -0
  195. package/components/table/table-const.js +13 -0
  196. package/components/table/table-primitives.d.ts +64 -0
  197. package/components/table/table-primitives.js +180 -0
  198. package/components/table/table-props.d.ts +304 -0
  199. package/components/table/table-props.js +1 -0
  200. package/components/table/table.d.ts +231 -107
  201. package/components/table/table.js +351 -346
  202. package/components/tabs/collapsible-more.js +1 -1
  203. package/components/tabs/collapsible-tab.js +1 -1
  204. package/components/tabs/collapsible-tabs.js +1 -1
  205. package/components/tabs/dumb-tabs.js +1 -1
  206. package/components/tabs/smart-tabs.js +1 -1
  207. package/components/tabs/tab-link.js +1 -1
  208. package/components/tabs/tabs.js +1 -1
  209. package/components/tag/tag.js +1 -1
  210. package/components/tags-input/tags-input.d.ts +3 -1
  211. package/components/tags-input/tags-input.js +4 -4
  212. package/components/tags-list/tags-list.js +2 -2
  213. package/components/toggle/toggle.js +1 -1
  214. package/components/tooltip/tooltip.d.ts +2 -1
  215. package/components/tooltip/tooltip.js +5 -3
  216. package/components/upload/upload.d.ts +4 -3
  217. package/components/upload/upload.js +7 -30
  218. package/components/user-agreement/service.js +3 -3
  219. package/components/user-agreement/user-agreement.js +2 -2
  220. package/components/user-card/card.js +4 -4
  221. package/components/user-card/smart-user-card-tooltip.js +3 -3
  222. package/components/user-card/tooltip.js +3 -3
  223. package/components/user-card/user-card.js +5 -5
  224. package/components/util-stories.d.ts +26 -0
  225. package/package.json +8 -9
  226. package/components/__mocks__/old-browsers-message.js +0 -3
  227. package/components/_helpers/grid.js +0 -3
  228. package/components/_helpers/sidebar.js +0 -110
  229. package/components/content-layout/content-layout.d.ts +0 -20
  230. package/components/content-layout/content-layout.js +0 -50
  231. package/components/content-layout/sidebar.d.ts +0 -26
  232. package/components/content-layout/sidebar.js +0 -5
  233. package/components/date-picker/use-intersection-observer.d.ts +0 -6
  234. package/components/date-picker/use-intersection-observer.js +0 -93
  235. package/components/expand/collapsible-group.d.ts +0 -8
  236. package/components/expand/collapsible-group.js +0 -52
  237. package/components/global/composeRefs.d.ts +0 -6
  238. package/components/global/composeRefs.js +0 -9
  239. package/components/global/use-event-callback.d.ts +0 -4
  240. package/components/global/use-event-callback.js +0 -49
  241. package/components/grid/col.d.ts +0 -16
  242. package/components/grid/col.js +0 -63
  243. package/components/grid/grid.d.ts +0 -13
  244. package/components/grid/grid.js +0 -27
  245. package/components/grid/row.d.ts +0 -21
  246. package/components/grid/row.js +0 -72
  247. package/components/old-browsers-message/old-browsers-message-stop.d.ts +0 -1
  248. package/components/old-browsers-message/old-browsers-message-stop.js +0 -5
  249. package/components/old-browsers-message/old-browsers-message.d.ts +0 -5
  250. package/components/old-browsers-message/old-browsers-message.js +0 -89
  251. package/components/old-browsers-message/white-list.d.ts +0 -2
  252. package/components/old-browsers-message/white-list.js +0 -30
  253. package/components/table/selection-adapter.d.ts +0 -6
  254. /package/components/{table → legacy-table}/cell.d.ts +0 -0
  255. /package/components/{table → legacy-table}/disable-hover-hoc.d.ts +0 -0
  256. /package/components/{table → legacy-table}/disable-hover-hoc.js +0 -0
  257. /package/components/{table → legacy-table}/header-cell.d.ts +0 -0
  258. /package/components/{table → legacy-table}/header.d.ts +0 -0
  259. /package/components/{table → legacy-table}/multitable.js +0 -0
  260. /package/components/{table → legacy-table}/row-with-focus-sensor.d.ts +0 -0
  261. /package/components/{table → legacy-table}/selection-adapter.js +0 -0
  262. /package/components/{table → legacy-table}/selection-shortcuts-hoc.js +0 -0
@@ -16,7 +16,7 @@ import '../island/adaptive-island-hoc.js';
16
16
  import '../global/linear-function.js';
17
17
  import '../_helpers/island.js';
18
18
  import '../island/header.js';
19
- import 'react-compiler-runtime';
19
+ import 'react/compiler-runtime';
20
20
  import '../island/content.js';
21
21
  import 'element-resize-detector';
22
22
  import '../global/schedule-raf.js';
@@ -28,14 +28,14 @@ import 'sniffr';
28
28
  import '../global/dom.js';
29
29
  import '@jetbrains/icons/chevron-down';
30
30
  import '@jetbrains/icons/chevron-12px-down';
31
- import 'util-deprecate';
32
31
  import '../icon/icon.js';
32
+ import 'util-deprecate';
33
33
  import '../icon/icon.constants.js';
34
34
  import '../_helpers/icon-svg.js';
35
- import '../global/configuration.js';
36
35
  import '../global/memoize.js';
37
36
  import '../link/clickable-link.js';
38
37
  import '../global/controls-height.js';
38
+ import '../global/configuration.js';
39
39
  import '../_helpers/button.classes.js';
40
40
  import '../popup/position.js';
41
41
  import '../popup/popup.consts.js';
@@ -139,8 +139,8 @@ class Dialog extends PureComponent {
139
139
  };
140
140
  };
141
141
  dialog;
142
- dialogRef = tabTrap => {
143
- this.dialog = tabTrap && tabTrap.node;
142
+ dialogRef = tabTrapObj => {
143
+ this.dialog = tabTrapObj && tabTrapObj.node;
144
144
  };
145
145
  nativeDialog = /*#__PURE__*/createRef();
146
146
  render() {
@@ -1,4 +1,4 @@
1
- import 'react-compiler-runtime';
1
+ import 'react/compiler-runtime';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '../button/button.js';
@@ -6,12 +6,12 @@ export { A as default } from '../_helpers/anchor.js';
6
6
  import 'react/jsx-runtime';
7
7
  import '@jetbrains/icons/chevron-down';
8
8
  import '@jetbrains/icons/chevron-12px-down';
9
- import 'util-deprecate';
10
9
  import '../icon/icon.js';
10
+ import 'util-deprecate';
11
11
  import '../icon/icon.constants.js';
12
12
  import '../_helpers/icon-svg.js';
13
- import '../global/configuration.js';
14
13
  import '../global/memoize.js';
15
14
  import '../link/clickable-link.js';
16
15
  import '../global/controls-height.js';
16
+ import '../global/configuration.js';
17
17
  import '../_helpers/button.classes.js';
@@ -4,18 +4,18 @@ import joinDataTestAttributes from '../global/data-tests.js';
4
4
  import { isArray } from '../global/typescript-utils.js';
5
5
  import { s as styles, A as Anchor } from '../_helpers/anchor.js';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
7
- import 'react-compiler-runtime';
7
+ import 'react/compiler-runtime';
8
8
  import '../button/button.js';
9
9
  import '@jetbrains/icons/chevron-down';
10
10
  import '@jetbrains/icons/chevron-12px-down';
11
- import 'util-deprecate';
12
11
  import '../icon/icon.js';
12
+ import 'util-deprecate';
13
13
  import '../icon/icon.constants.js';
14
14
  import '../_helpers/icon-svg.js';
15
- import '../global/configuration.js';
16
15
  import '../global/memoize.js';
17
16
  import '../link/clickable-link.js';
18
17
  import '../global/controls-height.js';
18
+ import '../global/configuration.js';
19
19
  import '../_helpers/button.classes.js';
20
20
 
21
21
  class Dropdown extends Component {
@@ -1,4 +1,4 @@
1
- import { type ReactElement, type HTMLAttributes, type SyntheticEvent, type Ref, type ReactNode } from 'react';
1
+ import { type ReactElement, type HTMLAttributes, type SyntheticEvent, type ReactNode } from 'react';
2
2
  import { type SelectHandlerParams } from '../list/list';
3
3
  import { type AnchorProps, type DropdownAttrs, type DropdownChildrenFunction } from '../dropdown/dropdown';
4
4
  import PopupMenu, { type PopupMenuAttrs } from '../popup-menu/popup-menu';
@@ -10,6 +10,7 @@ export interface DropdownAnchorWrapperProps extends AnchorProps {
10
10
  }
11
11
  type OnSelectHandler<T> = ((item: ListDataItem<T>, event: Event | SyntheticEvent, params?: SelectHandlerParams) => void) | undefined;
12
12
  export interface DropdownMenuProps<T = unknown> extends Omit<DropdownAttrs, 'anchor' | 'onSelect' | 'children'> {
13
+ ref?: React.Ref<PopupMenu<T> | null>;
13
14
  anchor: ReactElement | ReactNode[] | string | ((props: AnchorProps, ariaProps: HTMLAttributes<HTMLElement>) => ReactElement | null);
14
15
  data?: readonly ListDataItem<T>[] | undefined;
15
16
  ariaLabel?: string | null | undefined;
@@ -17,9 +18,8 @@ export interface DropdownMenuProps<T = unknown> extends Omit<DropdownAttrs, 'anc
17
18
  menuProps?: PopupMenuAttrs<T> | null | undefined;
18
19
  children?: DropdownChildrenFunction;
19
20
  }
20
- declare const _default: (<T = unknown>(props: DropdownMenuProps<T> & {
21
- ref?: Ref<PopupMenu>;
22
- }) => ReactElement | null) & {
21
+ declare function DropdownMenu<T = unknown>({ ref, id, anchor, ariaLabel, data, onSelect, menuProps, children, ...restDropdownProps }: DropdownMenuProps<T>): import("react").JSX.Element;
22
+ declare const _default: typeof DropdownMenu & {
23
23
  ListProps: {
24
24
  Type: typeof import("../list/consts").Type;
25
25
  Dimension: {
@@ -1,5 +1,5 @@
1
- import { c } from 'react-compiler-runtime';
2
- import { forwardRef, useState, cloneElement } from 'react';
1
+ import { c } from 'react/compiler-runtime';
2
+ import { 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';
@@ -37,7 +37,6 @@ import '@jetbrains/icons/remove-12px';
37
37
  import '../icon/icon.js';
38
38
  import '../icon/icon.constants.js';
39
39
  import '../_helpers/icon-svg.js';
40
- import '../global/configuration.js';
41
40
  import '../global/compose-refs.js';
42
41
  import '../control-help/control-help.js';
43
42
  import '../link/link.js';
@@ -54,6 +53,7 @@ import '../list/list-hint.js';
54
53
  import '../popup/popup.js';
55
54
  import 'react-dom';
56
55
  import '../tab-trap/tab-trap.js';
56
+ import '../global/configuration.js';
57
57
  import '../popup/position.js';
58
58
  import '../popup/popup.consts.js';
59
59
  import '../popup/popup.target.js';
@@ -68,11 +68,11 @@ import '../_helpers/button.classes.js';
68
68
  const defaultAriaLabel = 'Dropdown menu';
69
69
  function DropdownAnchorWrapper(t0) {
70
70
  const $ = c(4);
71
- if ($[0] !== "76518a978b8f0a4a0d9a0c10c7ca40e440513efe8e405524337b2d1b406bee02") {
71
+ if ($[0] !== "4128e61ebe660e719aaf538d00491953fbdf42de520c353af40602765f42bd6b") {
72
72
  for (let $i = 0; $i < 4; $i += 1) {
73
73
  $[$i] = Symbol.for("react.memo_cache_sentinel");
74
74
  }
75
- $[0] = "76518a978b8f0a4a0d9a0c10c7ca40e440513efe8e405524337b2d1b406bee02";
75
+ $[0] = "4128e61ebe660e719aaf538d00491953fbdf42de520c353af40602765f42bd6b";
76
76
  }
77
77
  let t1;
78
78
  let t2;
@@ -159,13 +159,13 @@ function renderDropdownMenuChildren({
159
159
  ...popupMenuProps
160
160
  });
161
161
  }
162
- const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(t0, forwardedRef) {
163
- const $ = c(35);
164
- if ($[0] !== "76518a978b8f0a4a0d9a0c10c7ca40e440513efe8e405524337b2d1b406bee02") {
165
- for (let $i = 0; $i < 35; $i += 1) {
162
+ function DropdownMenu(t0) {
163
+ const $ = c(36);
164
+ if ($[0] !== "4128e61ebe660e719aaf538d00491953fbdf42de520c353af40602765f42bd6b") {
165
+ for (let $i = 0; $i < 36; $i += 1) {
166
166
  $[$i] = Symbol.for("react.memo_cache_sentinel");
167
167
  }
168
- $[0] = "76518a978b8f0a4a0d9a0c10c7ca40e440513efe8e405524337b2d1b406bee02";
168
+ $[0] = "4128e61ebe660e719aaf538d00491953fbdf42de520c353af40602765f42bd6b";
169
169
  }
170
170
  let anchor;
171
171
  let ariaLabel;
@@ -174,9 +174,11 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(t0, forwarded
174
174
  let id;
175
175
  let menuProps;
176
176
  let onSelect;
177
+ let ref;
177
178
  let restDropdownProps;
178
179
  if ($[1] !== t0) {
179
180
  ({
181
+ ref,
180
182
  id,
181
183
  anchor,
182
184
  ariaLabel,
@@ -194,7 +196,8 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(t0, forwarded
194
196
  $[6] = id;
195
197
  $[7] = menuProps;
196
198
  $[8] = onSelect;
197
- $[9] = restDropdownProps;
199
+ $[9] = ref;
200
+ $[10] = restDropdownProps;
198
201
  } else {
199
202
  anchor = $[2];
200
203
  ariaLabel = $[3];
@@ -203,20 +206,22 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(t0, forwarded
203
206
  id = $[6];
204
207
  menuProps = $[7];
205
208
  onSelect = $[8];
206
- restDropdownProps = $[9];
209
+ ref = $[9];
210
+ restDropdownProps = $[10];
207
211
  }
208
212
  const [uid] = useState(_temp);
209
213
  const listId = id || uid;
214
+ const t1 = ariaLabel || defaultAriaLabel;
210
215
  let T0;
211
216
  let T1;
212
- let t1;
213
217
  let t2;
214
218
  let t3;
215
- if ($[10] !== anchor || $[11] !== ariaLabel || $[12] !== children || $[13] !== data || $[14] !== forwardedRef || $[15] !== listId || $[16] !== menuProps || $[17] !== onSelect || $[18] !== restDropdownProps) {
219
+ let t4;
220
+ if ($[11] !== anchor || $[12] !== children || $[13] !== data || $[14] !== listId || $[15] !== menuProps || $[16] !== onSelect || $[17] !== ref || $[18] !== restDropdownProps || $[19] !== t1) {
216
221
  const popupMenuProps = {
217
- ref: forwardedRef,
222
+ ref,
218
223
  id: listId,
219
- ariaLabel: ariaLabel || defaultAriaLabel,
224
+ ariaLabel: t1,
220
225
  closeOnSelect: true,
221
226
  activateFirstItem: false,
222
227
  data,
@@ -225,13 +230,13 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(t0, forwarded
225
230
  };
226
231
  T1 = ActiveItemContext.Provider;
227
232
  T0 = Dropdown;
228
- if ($[24] !== anchor || $[25] !== listId) {
229
- t1 = t4 => {
233
+ if ($[25] !== anchor || $[26] !== listId) {
234
+ t2 = t5 => {
230
235
  const {
231
236
  pinned,
232
237
  active,
233
238
  ...restAnchorProps
234
- } = t4;
239
+ } = t5;
235
240
  return /*#__PURE__*/jsx(ActiveItemContext.ValueContext.Consumer, {
236
241
  children: activeItemId => /*#__PURE__*/jsx(DropdownAnchorWrapper, {
237
242
  anchor: anchor,
@@ -243,71 +248,71 @@ const DropdownMenu = /*#__PURE__*/forwardRef(function DropdownMenu(t0, forwarded
243
248
  })
244
249
  });
245
250
  };
246
- $[24] = anchor;
247
- $[25] = listId;
248
- $[26] = t1;
251
+ $[25] = anchor;
252
+ $[26] = listId;
253
+ $[27] = t2;
249
254
  } else {
250
- t1 = $[26];
255
+ t2 = $[27];
251
256
  }
252
- t2 = restDropdownProps;
253
- t3 = renderDropdownMenuChildren({
257
+ t3 = restDropdownProps;
258
+ t4 = renderDropdownMenuChildren({
254
259
  children,
255
260
  popupMenuProps
256
261
  });
257
- $[10] = anchor;
258
- $[11] = ariaLabel;
262
+ $[11] = anchor;
259
263
  $[12] = children;
260
264
  $[13] = data;
261
- $[14] = forwardedRef;
262
- $[15] = listId;
263
- $[16] = menuProps;
264
- $[17] = onSelect;
265
+ $[14] = listId;
266
+ $[15] = menuProps;
267
+ $[16] = onSelect;
268
+ $[17] = ref;
265
269
  $[18] = restDropdownProps;
266
- $[19] = T0;
267
- $[20] = T1;
268
- $[21] = t1;
270
+ $[19] = t1;
271
+ $[20] = T0;
272
+ $[21] = T1;
269
273
  $[22] = t2;
270
274
  $[23] = t3;
275
+ $[24] = t4;
271
276
  } else {
272
- T0 = $[19];
273
- T1 = $[20];
274
- t1 = $[21];
277
+ T0 = $[20];
278
+ T1 = $[21];
275
279
  t2 = $[22];
276
280
  t3 = $[23];
281
+ t4 = $[24];
277
282
  }
278
- let t4;
279
- if ($[27] !== T0 || $[28] !== t1 || $[29] !== t2 || $[30] !== t3) {
280
- t4 = /*#__PURE__*/jsx(T0, {
281
- anchor: t1,
282
- ...t2,
283
- children: t3
283
+ let t5;
284
+ if ($[28] !== T0 || $[29] !== t2 || $[30] !== t3 || $[31] !== t4) {
285
+ t5 = /*#__PURE__*/jsx(T0, {
286
+ anchor: t2,
287
+ ...t3,
288
+ children: t4
284
289
  });
285
- $[27] = T0;
286
- $[28] = t1;
290
+ $[28] = T0;
287
291
  $[29] = t2;
288
292
  $[30] = t3;
289
293
  $[31] = t4;
294
+ $[32] = t5;
290
295
  } else {
291
- t4 = $[31];
296
+ t5 = $[32];
292
297
  }
293
- let t5;
294
- if ($[32] !== T1 || $[33] !== t4) {
295
- t5 = /*#__PURE__*/jsx(T1, {
296
- children: t4
298
+ let t6;
299
+ if ($[33] !== T1 || $[34] !== t5) {
300
+ t6 = /*#__PURE__*/jsx(T1, {
301
+ children: t5
297
302
  });
298
- $[32] = T1;
299
- $[33] = t4;
303
+ $[33] = T1;
300
304
  $[34] = t5;
305
+ $[35] = t6;
301
306
  } else {
302
- t5 = $[34];
307
+ t6 = $[35];
303
308
  }
304
- return t5;
305
- });
306
- var DropdownMenu$1 = Object.assign(DropdownMenu, {
307
- ListProps: List.ListProps
308
- });
309
+ return t6;
310
+ }
309
311
  function _temp() {
310
312
  return getUID("dropdown-menu-list");
311
313
  }
314
+ var DropdownMenu$1 = Object.assign(DropdownMenu, {
315
+ ListProps: List.ListProps
316
+ });
312
317
 
313
318
  export { DropdownMenu$1 as default };
@@ -29,5 +29,4 @@ export type EditableHeadingProps = Omit<InputHTMLAttributes<HTMLInputElement | H
29
29
  translations?: EditableHeadingTranslations;
30
30
  };
31
31
  export declare const EditableHeading: (props: EditableHeadingProps) => React.JSX.Element;
32
- declare const _default: React.MemoExoticComponent<(props: EditableHeadingProps) => React.JSX.Element>;
33
- export default _default;
32
+ export default EditableHeading;
@@ -1,13 +1,12 @@
1
- import { c } from 'react-compiler-runtime';
1
+ import { c } from 'react/compiler-runtime';
2
2
  import * as React from 'react';
3
- import { useLayoutEffect, useEffect } from 'react';
3
+ import { useEffectEvent, useLayoutEffect, useEffect } from 'react';
4
4
  import classNames from 'classnames';
5
5
  import Heading, { Levels } from '../heading/heading.js';
6
6
  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';
11
10
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
12
11
  import 'util-deprecate';
13
12
  import '../_helpers/heading.js';
@@ -16,10 +15,10 @@ import '@jetbrains/icons/chevron-12px-down';
16
15
  import '../icon/icon.js';
17
16
  import '../icon/icon.constants.js';
18
17
  import '../_helpers/icon-svg.js';
19
- import '../global/configuration.js';
20
18
  import '../global/memoize.js';
21
19
  import '../link/clickable-link.js';
22
20
  import '../global/controls-height.js';
21
+ import '../global/configuration.js';
23
22
  import '../_helpers/button.classes.js';
24
23
  import '@jetbrains/icons/close-12px';
25
24
  import '../i18n/i18n-context.js';
@@ -40,11 +39,11 @@ function noop() {}
40
39
  // eslint-disable-next-line complexity
41
40
  const EditableHeading = props => {
42
41
  const $ = c(134);
43
- if ($[0] !== "07354b4b5f4ebcba544bc9d3e840d7068d1f2b93d046629ed3331f3bf1ebf45b") {
42
+ if ($[0] !== "69c208dee49270703e9eadd0182734d1dca44cb4ecb35c235511c58f936a5946") {
44
43
  for (let $i = 0; $i < 134; $i += 1) {
45
44
  $[$i] = Symbol.for("react.memo_cache_sentinel");
46
45
  }
47
- $[0] = "07354b4b5f4ebcba544bc9d3e840d7068d1f2b93d046629ed3331f3bf1ebf45b";
46
+ $[0] = "69c208dee49270703e9eadd0182734d1dca44cb4ecb35c235511c58f936a5946";
48
47
  }
49
48
  let children;
50
49
  let className;
@@ -330,7 +329,7 @@ const EditableHeading = props => {
330
329
  } else {
331
330
  t25 = $[62];
332
331
  }
333
- const onMouseMove = useEventCallback(t25);
332
+ const onMouseMove = useEffectEvent(t25);
334
333
  let t26;
335
334
  if ($[63] !== disabled || $[64] !== isInSelectionMode || $[65] !== isMouseDown || $[66] !== onEdit) {
336
335
  t26 = () => {
@@ -348,7 +347,7 @@ const EditableHeading = props => {
348
347
  } else {
349
348
  t26 = $[67];
350
349
  }
351
- const onMouseUp = useEventCallback(t26);
350
+ const onMouseUp = useEffectEvent(t26);
352
351
  let t27;
353
352
  if ($[68] !== checkValue || $[69] !== onFocus) {
354
353
  t27 = e => {
@@ -423,7 +422,6 @@ const EditableHeading = props => {
423
422
  }
424
423
  useLayoutEffect(t31, t32);
425
424
  let t33;
426
- let t34;
427
425
  if ($[83] !== onMouseMove || $[84] !== onMouseUp) {
428
426
  t33 = () => {
429
427
  window.addEventListener("mousemove", onMouseMove);
@@ -433,13 +431,17 @@ const EditableHeading = props => {
433
431
  window.removeEventListener("mouseup", onMouseUp);
434
432
  };
435
433
  };
436
- t34 = [onMouseMove, onMouseUp];
437
434
  $[83] = onMouseMove;
438
435
  $[84] = onMouseUp;
439
436
  $[85] = t33;
440
- $[86] = t34;
441
437
  } else {
442
438
  t33 = $[85];
439
+ }
440
+ let t34;
441
+ if ($[86] === Symbol.for("react.memo_cache_sentinel")) {
442
+ t34 = [];
443
+ $[86] = t34;
444
+ } else {
443
445
  t34 = $[86];
444
446
  }
445
447
  useEffect(t33, t34);
@@ -596,9 +598,8 @@ const EditableHeading = props => {
596
598
  }
597
599
  return t40;
598
600
  };
599
- var editableHeading = /*#__PURE__*/React.memo(EditableHeading);
600
601
  function _temp() {
601
602
  return null;
602
603
  }
603
604
 
604
- export { EditableHeading, Levels, Size, editableHeading as default };
605
+ export { EditableHeading, Levels, Size, EditableHeading as default };
@@ -15,7 +15,7 @@ import '../global/sniffer.js';
15
15
  import 'sniffr';
16
16
  import '../global/data-tests.js';
17
17
  import '../tab-trap/tab-trap.js';
18
- import 'react-compiler-runtime';
18
+ import 'react/compiler-runtime';
19
19
  import '../global/configuration.js';
20
20
  import '../popup/position.js';
21
21
  import '../popup/popup.target.js';
@@ -6,8 +6,7 @@ import joinDataTestAttributes from '../global/data-tests.js';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
7
7
  import 'util-deprecate';
8
8
  import '../_helpers/icon-svg.js';
9
- import 'react-compiler-runtime';
10
- import '../global/configuration.js';
9
+ import 'react/compiler-runtime';
11
10
  import '../global/memoize.js';
12
11
 
13
12
  var styles = {"errorMessage":"ring-error-message-errorMessage","title":"ring-error-message-title","description":"ring-error-message-description","content":"ring-error-message-content","icon":"ring-error-message-icon"};
@@ -1,4 +1,4 @@
1
- import { c } from 'react-compiler-runtime';
1
+ import { c } from 'react/compiler-runtime';
2
2
  import { memo, isValidElement } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import Link from '../link/link.js';
@@ -1,2 +1,3 @@
1
1
  import { type Ref } from 'react';
2
- export declare function createComposedRef<T>(): import("memoize-one").MemoizedFn<(...refs: (Ref<T> | undefined)[]) => (value: T | null) => void>;
2
+ export declare function createComposedRef<T>(): import("memoize-one").MemoizedFn<(...refs: (Ref<T> | undefined)[]) => (value: T | null) => () => void>;
3
+ export declare function useComposedRef<T>(...refs: (Ref<T> | undefined)[]): Ref<T>;
@@ -1,16 +1,52 @@
1
+ import { c } from 'react/compiler-runtime';
2
+ import 'react';
1
3
  import memoizeOne from 'memoize-one';
2
4
 
3
5
  function composeRefs(...refs) {
4
- return value => refs.forEach(ref => {
5
- if (typeof ref === 'function') {
6
- ref(value);
7
- } else if (ref) {
8
- ref.current = value;
9
- }
10
- });
6
+ return value => {
7
+ const cleanups = [];
8
+ refs.forEach(ref => {
9
+ if (typeof ref === 'function') {
10
+ const cleanup = ref(value);
11
+ if (typeof cleanup === 'function') {
12
+ cleanups.push(cleanup);
13
+ }
14
+ } else if (ref) {
15
+ ref.current = value;
16
+ }
17
+ });
18
+ return () => cleanups.forEach(cleanup => cleanup());
19
+ };
11
20
  }
12
21
  function createComposedRef() {
13
22
  return memoizeOne(composeRefs);
14
23
  }
24
+ function useComposedRef(...t0) {
25
+ const $ = c(4);
26
+ if ($[0] !== "27d6e427dad1098fabcf040df3e7a3018e96f8cc69541f012bb950b976d64df8") {
27
+ for (let $i = 0; $i < 4; $i += 1) {
28
+ $[$i] = Symbol.for("react.memo_cache_sentinel");
29
+ }
30
+ $[0] = "27d6e427dad1098fabcf040df3e7a3018e96f8cc69541f012bb950b976d64df8";
31
+ }
32
+ const refs = t0;
33
+ let t1;
34
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
35
+ t1 = createComposedRef();
36
+ $[1] = t1;
37
+ } else {
38
+ t1 = $[1];
39
+ }
40
+ const composer = t1;
41
+ let t2;
42
+ if ($[2] !== refs) {
43
+ t2 = composer(...refs);
44
+ $[2] = refs;
45
+ $[3] = t2;
46
+ } else {
47
+ t2 = $[3];
48
+ }
49
+ return t2;
50
+ }
15
51
 
16
- export { createComposedRef };
52
+ export { createComposedRef, useComposedRef };
@@ -3,14 +3,9 @@ export declare enum ControlsHeight {
3
3
  M = "M",
4
4
  L = "L"
5
5
  }
6
- export interface RingUITrustedTypePolicy {
7
- createHTML(html: string): TrustedHTML;
8
- }
9
6
  export interface RingUIConfiguration {
10
7
  controlsHeight?: ControlsHeight;
11
8
  popupsCssPositioning?: boolean;
12
- trustedTypePolicy?: RingUITrustedTypePolicy | null;
13
9
  }
14
10
  export declare function configure(config: RingUIConfiguration): void;
15
11
  export declare function getConfiguration(): Required<RingUIConfiguration>;
16
- export declare function getTrustedHTML(html: string): string | TrustedHTML;
@@ -6,8 +6,7 @@ var ControlsHeight;
6
6
  })(ControlsHeight || (ControlsHeight = {}));
7
7
  const globalConfiguration = {
8
8
  controlsHeight: ControlsHeight.M,
9
- popupsCssPositioning: true,
10
- trustedTypePolicy: null
9
+ popupsCssPositioning: true
11
10
  };
12
11
  function configure(config) {
13
12
  if (config.controlsHeight !== undefined) {
@@ -16,18 +15,11 @@ function configure(config) {
16
15
  if (config.popupsCssPositioning !== undefined) {
17
16
  globalConfiguration.popupsCssPositioning = config.popupsCssPositioning;
18
17
  }
19
- if (config.trustedTypePolicy !== undefined) {
20
- globalConfiguration.trustedTypePolicy = config.trustedTypePolicy;
21
- }
22
18
  }
23
19
  function getConfiguration() {
24
20
  return {
25
21
  ...globalConfiguration
26
22
  };
27
23
  }
28
- function getTrustedHTML(html) {
29
- var _globalConfiguration$;
30
- return (_globalConfiguration$ = globalConfiguration.trustedTypePolicy?.createHTML(html)) !== null && _globalConfiguration$ !== void 0 ? _globalConfiguration$ : html;
31
- }
32
24
 
33
- export { ControlsHeight, configure, getConfiguration, getTrustedHTML };
25
+ export { ControlsHeight, configure, getConfiguration };
@@ -1,6 +1,6 @@
1
1
  import { createContext } from 'react';
2
2
  import deprecate from 'util-deprecate';
3
- import { configure, ControlsHeight, getConfiguration } from './configuration.js';
3
+ import { ControlsHeight, getConfiguration, configure } from './configuration.js';
4
4
 
5
5
  // This can be used if React Context is not applicable, for example for alertService or Auth dialog
6
6
  const configureGlobalControlsHeight = deprecate(value => {
@@ -1,5 +1,5 @@
1
- import { c } from 'react-compiler-runtime';
2
- import { memo, createContext, useState, useContext, useEffect } from 'react';
1
+ import { c } from 'react/compiler-runtime';
2
+ import { memo, createContext, useState, use, useEffect } from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  function createStatefulContext(initialValue, name = '') {
@@ -7,11 +7,11 @@ function createStatefulContext(initialValue, name = '') {
7
7
  const UpdateContext = /*#__PURE__*/createContext(() => {});
8
8
  function Provider(t0) {
9
9
  const $ = c(6);
10
- if ($[0] !== "576d375e78a62076caf2193d98749eebdfd60d1ce7b219f4ea1f080358177a6e") {
10
+ if ($[0] !== "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38") {
11
11
  for (let $i = 0; $i < 6; $i += 1) {
12
12
  $[$i] = Symbol.for("react.memo_cache_sentinel");
13
13
  }
14
- $[0] = "576d375e78a62076caf2193d98749eebdfd60d1ce7b219f4ea1f080358177a6e";
14
+ $[0] = "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38";
15
15
  }
16
16
  const {
17
17
  children
@@ -19,7 +19,7 @@ function createStatefulContext(initialValue, name = '') {
19
19
  const [value, update] = useState(initialValue);
20
20
  let t1;
21
21
  if ($[1] !== children) {
22
- t1 = /*#__PURE__*/jsx(UpdateContext.Provider, {
22
+ t1 = /*#__PURE__*/jsx(UpdateContext, {
23
23
  value: update,
24
24
  children: children
25
25
  });
@@ -30,7 +30,7 @@ function createStatefulContext(initialValue, name = '') {
30
30
  }
31
31
  let t2;
32
32
  if ($[3] !== t1 || $[4] !== value) {
33
- t2 = /*#__PURE__*/jsx(ValueContext.Provider, {
33
+ t2 = /*#__PURE__*/jsx(ValueContext, {
34
34
  value: value,
35
35
  children: t1
36
36
  });
@@ -45,13 +45,13 @@ function createStatefulContext(initialValue, name = '') {
45
45
  Provider.displayName = `${name}Provider`;
46
46
  function useUpdate(value, skipUpdate) {
47
47
  const $ = c(6);
48
- if ($[0] !== "576d375e78a62076caf2193d98749eebdfd60d1ce7b219f4ea1f080358177a6e") {
48
+ if ($[0] !== "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38") {
49
49
  for (let $i = 0; $i < 6; $i += 1) {
50
50
  $[$i] = Symbol.for("react.memo_cache_sentinel");
51
51
  }
52
- $[0] = "576d375e78a62076caf2193d98749eebdfd60d1ce7b219f4ea1f080358177a6e";
52
+ $[0] = "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38";
53
53
  }
54
- const update = useContext(UpdateContext);
54
+ const update = use(UpdateContext);
55
55
  let t0;
56
56
  let t1;
57
57
  if ($[1] !== skipUpdate || $[2] !== update || $[3] !== value) {
@@ -74,11 +74,11 @@ function createStatefulContext(initialValue, name = '') {
74
74
  }
75
75
  function Updater(t0) {
76
76
  const $ = c(1);
77
- if ($[0] !== "576d375e78a62076caf2193d98749eebdfd60d1ce7b219f4ea1f080358177a6e") {
77
+ if ($[0] !== "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38") {
78
78
  for (let $i = 0; $i < 1; $i += 1) {
79
79
  $[$i] = Symbol.for("react.memo_cache_sentinel");
80
80
  }
81
- $[0] = "576d375e78a62076caf2193d98749eebdfd60d1ce7b219f4ea1f080358177a6e";
81
+ $[0] = "c32a3d1ce094187d9e31020169cf0e12fc089d2172bbc5ca2c801f434f79cb38";
82
82
  }
83
83
  const {
84
84
  value,