@baseline-ui/core 3.2.1 → 3.3.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 (210) hide show
  1. package/dist/Accordion.mjs +1 -1
  2. package/dist/ActionButton.mjs +1 -1
  3. package/dist/ActionGroup.mjs +1 -1
  4. package/dist/ActionIconButton.mjs +1 -1
  5. package/dist/AlertDialog.mjs +1 -1
  6. package/dist/AudioPlayer.mjs +1 -1
  7. package/dist/Avatar.mjs +1 -1
  8. package/dist/ButtonSelect.mjs +1 -1
  9. package/dist/Calendar.mjs +1 -1
  10. package/dist/Checkbox.mjs +1 -1
  11. package/dist/ColorInput.mjs +1 -1
  12. package/dist/ColorSwatch.mjs +1 -1
  13. package/dist/ColorSwatchPicker.mjs +1 -1
  14. package/dist/ComboBox.mjs +1 -1
  15. package/dist/DateField.mjs +1 -1
  16. package/dist/Dialog.mjs +1 -1
  17. package/dist/Disclosure.mjs +1 -1
  18. package/dist/DomNodeRenderer.mjs +1 -1
  19. package/dist/Drawer.mjs +1 -1
  20. package/dist/Editor.mjs +1 -1
  21. package/dist/FileInput.mjs +1 -1
  22. package/dist/FileList.mjs +1 -1
  23. package/dist/FileUploader.mjs +1 -1
  24. package/dist/FrameProvider.mjs +1 -1
  25. package/dist/FreehandCanvas.mjs +1 -1
  26. package/dist/GridList.mjs +1 -1
  27. package/dist/Icon.mjs +1 -1
  28. package/dist/ImageDropZone.mjs +1 -1
  29. package/dist/ImageGallery.mjs +1 -1
  30. package/dist/InlineAlert.mjs +1 -1
  31. package/dist/InlineToolbar.mjs +1 -1
  32. package/dist/Kbd.mjs +1 -1
  33. package/dist/Link.mjs +1 -1
  34. package/dist/ListBox.mjs +1 -1
  35. package/dist/Menu.mjs +1 -1
  36. package/dist/Modal.mjs +1 -1
  37. package/dist/NumberInput.mjs +1 -1
  38. package/dist/Pagination.mjs +1 -1
  39. package/dist/PointPicker.mjs +1 -1
  40. package/dist/Popover.mjs +1 -1
  41. package/dist/Portal.mjs +1 -1
  42. package/dist/Preview.mjs +1 -1
  43. package/dist/ProgressBar.mjs +1 -1
  44. package/dist/RadioGroup.mjs +1 -1
  45. package/dist/Reaction.mjs +1 -1
  46. package/dist/ScrollControlButton.mjs +1 -1
  47. package/dist/SearchInput.mjs +1 -1
  48. package/dist/Select.mjs +1 -1
  49. package/dist/Separator.mjs +1 -1
  50. package/dist/Slider.mjs +1 -1
  51. package/dist/StatusCard.mjs +1 -1
  52. package/dist/Stepper.mjs +1 -1
  53. package/dist/Switch.mjs +1 -1
  54. package/dist/Table.mjs +1 -1
  55. package/dist/Tabs.mjs +1 -1
  56. package/dist/Tag.mjs +1 -1
  57. package/dist/TagGroup.mjs +1 -1
  58. package/dist/TaggedPagination.mjs +1 -1
  59. package/dist/Text.mjs +1 -1
  60. package/dist/TextInput.mjs +1 -1
  61. package/dist/ThemeProvider.mjs +1 -1
  62. package/dist/TimeField.mjs +1 -1
  63. package/dist/Toast.mjs +1 -1
  64. package/dist/ToggleButton.mjs +1 -1
  65. package/dist/ToggleIconButton.mjs +1 -1
  66. package/dist/Toolbar.mjs +1 -1
  67. package/dist/Tooltip.mjs +1 -1
  68. package/dist/TreeView.mjs +1 -1
  69. package/dist/UNSAFE_ListBox.mjs +1 -1
  70. package/dist/Virtualizer.mjs +1 -1
  71. package/dist/{chunk-VJ3SWDRJ.mjs → chunk-2BXXD6SW.mjs} +1 -1
  72. package/dist/{chunk-IE3E4KQ6.mjs → chunk-2EMOQIU7.mjs} +1 -1
  73. package/dist/{chunk-ODDEW5IV.mjs → chunk-2TH2QRSV.mjs} +1 -1
  74. package/dist/{chunk-TVENHRYC.mjs → chunk-2V323KAD.mjs} +1 -1
  75. package/dist/{chunk-47I3USMC.mjs → chunk-2YTKLY4F.mjs} +1 -1
  76. package/dist/{chunk-RWHDD6Z7.mjs → chunk-4C6AJ3TZ.mjs} +1 -1
  77. package/dist/{chunk-VDSLDZLT.mjs → chunk-5HK56IXH.mjs} +1 -1
  78. package/dist/chunk-5IXSPQRW.mjs +10 -0
  79. package/dist/{chunk-XIXHGXIN.mjs → chunk-5K46OAX5.mjs} +1 -1
  80. package/dist/{chunk-F2O4AP7P.mjs → chunk-5MUEJ5WI.mjs} +1 -1
  81. package/dist/{chunk-W3ZGXUFP.mjs → chunk-6EFNC443.mjs} +1 -1
  82. package/dist/{chunk-ULCYKB34.mjs → chunk-6JWACCHG.mjs} +1 -1
  83. package/dist/{chunk-HDVWQ6RL.mjs → chunk-6NQPENP4.mjs} +1 -1
  84. package/dist/{chunk-OHZK2ZDA.mjs → chunk-6PXOVWVM.mjs} +1 -1
  85. package/dist/{chunk-TPNZG6FA.mjs → chunk-6V7BIFQD.mjs} +1 -1
  86. package/dist/{chunk-3JL2TJZL.mjs → chunk-6VXBFM6Q.mjs} +1 -1
  87. package/dist/{chunk-4BYKAG4W.mjs → chunk-7L5UOGZA.mjs} +1 -1
  88. package/dist/{chunk-MNAD5FJH.mjs → chunk-7MQBBSZ2.mjs} +1 -1
  89. package/dist/{chunk-O66FNQSB.mjs → chunk-7P322KP4.mjs} +1 -1
  90. package/dist/{chunk-UCZZLAPB.mjs → chunk-AW5WDI2U.mjs} +1 -1
  91. package/dist/{chunk-WN6FAICZ.mjs → chunk-AYBACQ6U.mjs} +1 -1
  92. package/dist/chunk-B237CJT4.mjs +10 -0
  93. package/dist/{chunk-WRQ4FPJE.mjs → chunk-B6U6JHD4.mjs} +1 -1
  94. package/dist/{chunk-WA35CT3D.mjs → chunk-BBZ2I3RF.mjs} +2 -2
  95. package/dist/{chunk-G3K2DXNP.mjs → chunk-BCENUHNO.mjs} +1 -1
  96. package/dist/{chunk-UOMNE4F4.mjs → chunk-BGHBSM3K.mjs} +1 -1
  97. package/dist/{chunk-K6MB234H.mjs → chunk-BIDNNBRG.mjs} +1 -1
  98. package/dist/{chunk-RBZ7SIZR.mjs → chunk-BROSGYL3.mjs} +1 -1
  99. package/dist/{chunk-TBDKTTIY.mjs → chunk-C7AUJO36.mjs} +2 -2
  100. package/dist/{chunk-THRAJMLX.mjs → chunk-CCA2ABXO.mjs} +2 -2
  101. package/dist/{chunk-N7MTFSWR.mjs → chunk-CUOTJ7AP.mjs} +2 -2
  102. package/dist/{chunk-4MRHG5IU.mjs → chunk-CYTHB4M4.mjs} +1 -1
  103. package/dist/chunk-DDLZ6CKC.mjs +10 -0
  104. package/dist/chunk-DMJHCNBU.mjs +10 -0
  105. package/dist/{chunk-4TAUFBXO.mjs → chunk-E3DMXJIC.mjs} +1 -1
  106. package/dist/{chunk-6DGD7BZA.mjs → chunk-E3QDPL77.mjs} +1 -1
  107. package/dist/{chunk-SNQDFFKP.mjs → chunk-E5GYCA3P.mjs} +1 -1
  108. package/dist/{chunk-55YEATL7.mjs → chunk-EGXILQNX.mjs} +1 -1
  109. package/dist/{chunk-5TDFLLMX.mjs → chunk-EYKIXVM3.mjs} +2 -2
  110. package/dist/{chunk-XB657BXX.mjs → chunk-GI2O6H4I.mjs} +1 -1
  111. package/dist/{chunk-EADUR7IC.mjs → chunk-GVI6EBGJ.mjs} +2 -2
  112. package/dist/{chunk-T2XIDX6U.mjs → chunk-HK3CZVHY.mjs} +1 -1
  113. package/dist/{chunk-TNU3YDGL.mjs → chunk-HVKYWSRF.mjs} +1 -1
  114. package/dist/{chunk-N53SGN23.mjs → chunk-ILAQFMYD.mjs} +1 -1
  115. package/dist/chunk-ITWJSFYK.mjs +10 -0
  116. package/dist/{chunk-MFH2E2GU.mjs → chunk-IVC2BJRU.mjs} +1 -1
  117. package/dist/{chunk-TEQE6WCH.mjs → chunk-IXK6S6IH.mjs} +1 -1
  118. package/dist/{chunk-HXTAOYOD.mjs → chunk-IXRSSEHQ.mjs} +1 -1
  119. package/dist/{chunk-J7RVOP5G.mjs → chunk-JDIGAVFU.mjs} +1 -1
  120. package/dist/{chunk-C5P23FUW.mjs → chunk-K6HE4Z2Y.mjs} +1 -1
  121. package/dist/chunk-K73R5G6G.mjs +10 -0
  122. package/dist/chunk-KEAM6GSA.mjs +10 -0
  123. package/dist/{chunk-4SBMUWOY.mjs → chunk-KHOXLBPR.mjs} +1 -1
  124. package/dist/{chunk-Q4BSQC65.mjs → chunk-KWHTLY23.mjs} +1 -1
  125. package/dist/{chunk-2HMLSXNO.mjs → chunk-L6S5GBKS.mjs} +1 -1
  126. package/dist/{chunk-MFNWPTNI.mjs → chunk-M7OLZJYB.mjs} +2 -2
  127. package/dist/{chunk-KLNQ24LT.mjs → chunk-MONDDKB4.mjs} +1 -1
  128. package/dist/chunk-N26C7NYZ.mjs +10 -0
  129. package/dist/{chunk-C3W4WN2O.mjs → chunk-N6VKP3UH.mjs} +1 -1
  130. package/dist/{chunk-3L7GTQXK.mjs → chunk-NADBGP35.mjs} +1 -1
  131. package/dist/{chunk-TDPODC62.mjs → chunk-NMSOOQB2.mjs} +1 -1
  132. package/dist/{chunk-ENDOKA57.mjs → chunk-NQO6OQT6.mjs} +1 -1
  133. package/dist/{chunk-246VHB32.mjs → chunk-NUYBQ7KP.mjs} +1 -1
  134. package/dist/{chunk-JF4BWG7T.mjs → chunk-NZQVKNP4.mjs} +1 -1
  135. package/dist/{chunk-ZFLLIBX5.mjs → chunk-P37WUXAI.mjs} +1 -1
  136. package/dist/{chunk-RRB5F4E4.mjs → chunk-P5LSMA24.mjs} +3 -3
  137. package/dist/{chunk-XCL4K4MY.mjs → chunk-PA3THES4.mjs} +1 -1
  138. package/dist/{chunk-WICBTAMY.mjs → chunk-PG3WDHSK.mjs} +1 -1
  139. package/dist/{chunk-BZTAFNPW.mjs → chunk-PNBYTIUO.mjs} +1 -1
  140. package/dist/{chunk-GS4C6CYA.mjs → chunk-QDQPVCXN.mjs} +1 -1
  141. package/dist/{chunk-MXKP7NQ4.mjs → chunk-QSSCSN5S.mjs} +1 -1
  142. package/dist/{chunk-DAN5WASP.mjs → chunk-QXOG2ISL.mjs} +1 -1
  143. package/dist/{chunk-AL3FICFA.mjs → chunk-QYTY3KJR.mjs} +1 -1
  144. package/dist/{chunk-PFKPY3N7.mjs → chunk-R2OV7FJO.mjs} +1 -1
  145. package/dist/{chunk-H2E7GKGB.mjs → chunk-RJZZIVSY.mjs} +2 -2
  146. package/dist/{chunk-2NO2ITVE.mjs → chunk-RO5ZRU3Y.mjs} +1 -1
  147. package/dist/{chunk-7OCDKTTZ.mjs → chunk-RSTHM3ZF.mjs} +1 -1
  148. package/dist/{chunk-FTYXFTJV.mjs → chunk-SBR5UAUY.mjs} +2 -2
  149. package/dist/chunk-SHJ2TJYG.mjs +10 -0
  150. package/dist/{chunk-KAVZW4RV.mjs → chunk-SYFSGF73.mjs} +1 -1
  151. package/dist/{chunk-RM2Y4D2M.mjs → chunk-SZTFMBPY.mjs} +1 -1
  152. package/dist/chunk-T4R3EXGI.mjs +10 -0
  153. package/dist/{chunk-LTIDSWDM.mjs → chunk-TBCZKWGQ.mjs} +1 -1
  154. package/dist/{chunk-JJPCZOOI.mjs → chunk-TCCQDGMI.mjs} +1 -1
  155. package/dist/{chunk-IHLJTHGQ.mjs → chunk-TDYBXLYP.mjs} +1 -1
  156. package/dist/{chunk-MI7DCFP2.mjs → chunk-TTYRHIRQ.mjs} +1 -1
  157. package/dist/{chunk-OC42IZG2.mjs → chunk-UBFMOTBM.mjs} +2 -2
  158. package/dist/{chunk-4DTPDMSQ.mjs → chunk-UCPPKNGF.mjs} +1 -1
  159. package/dist/{chunk-EK3RIYMV.mjs → chunk-UEDBY5JI.mjs} +1 -1
  160. package/dist/{chunk-6DU65N7Q.mjs → chunk-UN7XC7QV.mjs} +2 -2
  161. package/dist/{chunk-JUXBZ2ZN.mjs → chunk-UT2I4K7L.mjs} +1 -1
  162. package/dist/{chunk-J7K7I5U2.mjs → chunk-V37GPPZD.mjs} +1 -1
  163. package/dist/chunk-VAFIUM63.mjs +29 -0
  164. package/dist/{chunk-KKJ6XIU3.mjs → chunk-VIVNQZYK.mjs} +2 -2
  165. package/dist/{chunk-RZEGMPV2.mjs → chunk-VOSSQAHC.mjs} +1 -1
  166. package/dist/{chunk-UCQJ6FJO.mjs → chunk-VZFS4QRW.mjs} +1 -1
  167. package/dist/{chunk-NVS22MIQ.mjs → chunk-X5Z54UUE.mjs} +1 -1
  168. package/dist/{chunk-LRZ6BQFQ.mjs → chunk-X6IJEPSH.mjs} +1 -1
  169. package/dist/{chunk-H4ZIN7W3.mjs → chunk-XEGXSFIP.mjs} +1 -1
  170. package/dist/{chunk-JQ4ZGZPV.mjs → chunk-XF5UMU6D.mjs} +3 -3
  171. package/dist/{chunk-ZAMDRHQY.mjs → chunk-XJ2DFV56.mjs} +1 -1
  172. package/dist/{chunk-NSC53QWT.mjs → chunk-XUJJMAKM.mjs} +1 -1
  173. package/dist/{chunk-QKKV24WQ.mjs → chunk-Y3YZMICA.mjs} +1 -1
  174. package/dist/{chunk-TO6OQF2Y.mjs → chunk-YKMSINHH.mjs} +2 -2
  175. package/dist/{chunk-7VHON5HL.mjs → chunk-YWCU4PP7.mjs} +2 -2
  176. package/dist/{chunk-3BL5D3CA.mjs → chunk-YWQXHVMW.mjs} +1 -1
  177. package/dist/{chunk-FOEGHU3P.mjs → chunk-YX2ASVM3.mjs} +1 -1
  178. package/dist/{chunk-OFWPRDTC.mjs → chunk-Z4HTFTPM.mjs} +1 -1
  179. package/dist/{chunk-QQGK5M66.mjs → chunk-ZLZAFTSD.mjs} +2 -2
  180. package/dist/hooks/useContainerScopedRef.mjs +1 -1
  181. package/dist/hooks/useDevice.mjs +1 -1
  182. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  183. package/dist/hooks/useLocalStorage.mjs +1 -1
  184. package/dist/hooks/useMutationObserver.mjs +1 -1
  185. package/dist/hooks/usePortalContainer.mjs +1 -1
  186. package/dist/hooks/usePreventFocus.mjs +1 -1
  187. package/dist/hooks/useResizeObserver.mjs +1 -1
  188. package/dist/hooks/useTextSelection.mjs +1 -1
  189. package/dist/hooks/useUndoRedo.mjs +1 -1
  190. package/dist/index.d.ts +48 -33
  191. package/dist/index.js +19 -19
  192. package/dist/index.mjs +1 -1
  193. package/dist/utils/dom.mjs +1 -1
  194. package/dist/utils/isInShadowDOM.mjs +1 -1
  195. package/dist/utils/keyboards.mjs +1 -1
  196. package/package.json +6 -6
  197. package/sbom.json +27 -77
  198. package/dist/chunk-4I4TIV2G.mjs +0 -10
  199. package/dist/chunk-6IRWW75G.mjs +0 -10
  200. package/dist/chunk-6Y6BYHT4.mjs +0 -10
  201. package/dist/chunk-6ZFBX7C7.mjs +0 -10
  202. package/dist/chunk-AZRPXTYJ.mjs +0 -10
  203. package/dist/chunk-DSSMBDVA.mjs +0 -10
  204. package/dist/chunk-GLT45FXJ.mjs +0 -10
  205. package/dist/chunk-PDWICYVZ.mjs +0 -29
  206. package/dist/chunk-PF3OQKXP.mjs +0 -10
  207. package/dist/chunk-TIHKHXTS.mjs +0 -10
  208. package/dist/chunk-YVYMYKYN.mjs +0 -10
  209. package/dist/chunk-ZP4YB5RP.mjs +0 -10
  210. /package/dist/{chunk-FXCHST4Z.mjs → chunk-JQQGRJ5J.mjs} +0 -0
package/dist/index.d.ts CHANGED
@@ -3,7 +3,6 @@ import React__default, { ReactNode, AriaAttributes, DOMAttributes as DOMAttribut
3
3
  import { CalendarDate, CalendarDateTime, ZonedDateTime, DateDuration, CalendarIdentifier, Calendar as Calendar$1, Time, DateFormatter } from '@internationalized/date';
4
4
  import { Theme, Sprinkles } from '@baseline-ui/tokens';
5
5
  import { PanelImperativeHandle, PanelProps as PanelProps$1, SeparatorProps as SeparatorProps$2 } from 'react-resizable-panels';
6
- import * as react_jsx_runtime from 'react/jsx-runtime';
7
6
  export { MotionGlobalConfig } from 'motion/react';
8
7
 
9
8
  /*
@@ -6017,7 +6016,7 @@ declare function classNames(...args: any[]): string;
6017
6016
  * Returns the HTMLElement from a string selector, HTMLElement, or React
6018
6017
  * RefObject.
6019
6018
  */
6020
- declare function getHTMLElement(element: string | HTMLElement | React__default.RefObject<HTMLElement> | null | undefined, ownerDocument: Document): HTMLElement | null | undefined;
6019
+ declare function getHTMLElement(element: string | HTMLElement | React__default.RefObject<HTMLElement | null> | null | undefined, ownerDocument: Document): HTMLElement | null | undefined;
6021
6020
  interface FontProperties {
6022
6021
  fontSize?: number;
6023
6022
  fontFamily?: string;
@@ -6585,7 +6584,7 @@ interface ListBoxProps extends StylingProps, Omit<AriaListBoxProps<ListItem> & A
6585
6584
  */
6586
6585
  withSectionHeaderPadding?: boolean;
6587
6586
  /** Handle to access the listbox methods. */
6588
- listBoxHandle?: React__default.RefObject<ListHandle$1>;
6587
+ listBoxHandle?: React__default.RefObject<ListHandle$1 | null>;
6589
6588
  }
6590
6589
 
6591
6590
  declare const ListBox: React__default.ForwardRefExoticComponent<ListBoxProps & React__default.RefAttributes<HTMLUListElement>>;
@@ -6748,7 +6747,7 @@ interface PopoverContentProps extends Omit<AriaPopoverProps, "popoverRef" | "tri
6748
6747
  * The reference element for the popover position. By default, the popover is
6749
6748
  * positioned relative to the trigger element.
6750
6749
  */
6751
- triggerRef?: React__default.RefObject<HTMLElement>;
6750
+ triggerRef?: React__default.RefObject<HTMLElement | null>;
6752
6751
  /** The class name for the underlay element. */
6753
6752
  underlayClassName?: ClassName$1;
6754
6753
  /** The contents of the popover. */
@@ -6959,7 +6958,7 @@ interface UNSAFE_ListBoxProps extends StylingProps, Omit<AriaListBoxProps<ListIt
6959
6958
  /** The label for the listbox. */
6960
6959
  label?: React__default.ReactNode;
6961
6960
  /** Handle to access the listbox methods. */
6962
- listBoxHandle?: React__default.RefObject<ListHandle>;
6961
+ listBoxHandle?: React__default.RefObject<ListHandle | null>;
6963
6962
  }
6964
6963
 
6965
6964
  type MenuOption = Omit<CollectionOptionItem, "description"> & {
@@ -8592,7 +8591,7 @@ interface FreehandCanvasProps extends StylingProps, AriaLabelingProps {
8592
8591
  /** The style applicable to the SVG canvas. */
8593
8592
  canvasStyle?: React__default.CSSProperties;
8594
8593
  /** The ref for the canvas. */
8595
- canvasRef?: React__default.RefObject<HTMLDivElement>;
8594
+ canvasRef?: React__default.RefObject<HTMLDivElement | null>;
8596
8595
  /** The className applicable to the footer. */
8597
8596
  footerClassName?: string;
8598
8597
  /** The style applicable to the footer. */
@@ -8828,7 +8827,13 @@ interface PreviewProps extends StylingProps, AriaLabelingProps {
8828
8827
  imageSrc?: string;
8829
8828
  /** The alt text for the image. */
8830
8829
  imageAlt?: string;
8831
- /** The SVG to display in the preview. This can be a React element or a string. */
8830
+ /**
8831
+ * The SVG to display in the preview. This can be a React element or a string.
8832
+ * String SVGs are sanitized with DOMPurify's default profile, which removes
8833
+ * scripts, event handlers and elements such as `use` (so `<use href="#id">`
8834
+ * sprite icons render blank), `animate`, `set` and `foreignObject`. Pass a
8835
+ * React element to render those. String SVGs render after mount.
8836
+ */
8832
8837
  svgSrc?: string | React__default.JSX.Element;
8833
8838
  /** Whether the preview should be disabled or not. */
8834
8839
  isDisabled?: boolean;
@@ -9179,7 +9184,9 @@ interface EditorProps extends StylingProps, AriaLabelingProps {
9179
9184
  editableContentAriaLabel?: string;
9180
9185
  /**
9181
9186
  * An optional array of mentionable users. Mention feature is only available
9182
- * when `enableRichText` is set to `true` and this prop is provided.
9187
+ * when `enableRichText` is set to `true` and this prop is provided. Pasted or
9188
+ * dropped mentions of users not in this array, or of any user while it is
9189
+ * undefined, become plain text.
9183
9190
  *
9184
9191
  * ```tsx
9185
9192
  * type MentionableUser = {
@@ -9208,7 +9215,7 @@ interface EditorProps extends StylingProps, AriaLabelingProps {
9208
9215
  props: Omit<ToggleIconButtonProps, "size" | "variant">;
9209
9216
  })[];
9210
9217
  /** The imperative handle for manipulating editor. */
9211
- editorHandle?: React__default.RefObject<EditorHandle>;
9218
+ editorHandle?: React__default.RefObject<EditorHandle | null>;
9212
9219
  /**
9213
9220
  * Whether to clear the editor value when the editor is saved.
9214
9221
  *
@@ -9533,6 +9540,13 @@ interface EditorCoreOptions {
9533
9540
  * the character is inserted natively (e.g. no mentionable users configured).
9534
9541
  */
9535
9542
  canStartMention?: () => boolean;
9543
+ /**
9544
+ * Resolves a pasted mention's user id to its display name. A mention whose
9545
+ * id resolves to `undefined` is pasted as plain text. When omitted, pasted
9546
+ * mentions are kept as-is. Applies to pasted and dropped content, not to
9547
+ * `value`/`setValue`.
9548
+ */
9549
+ resolveMention?: (userId: string) => string | undefined;
9536
9550
  /**
9537
9551
  * When this returns false, URL-shaped text is NOT auto-converted into links
9538
9552
  * (typing a delimiter after a URL, pasting URLs, smart-pasting a URL over a
@@ -9729,6 +9743,7 @@ declare class EditorCore {
9729
9743
  */
9730
9744
  private applyAutoLink;
9731
9745
  private handlePasteInput;
9746
+ private resolvePastedMentions;
9732
9747
  private insertPastedData;
9733
9748
  /**
9734
9749
  * Called after an `input` event (or compositionend). Reads the current DOM
@@ -9808,7 +9823,7 @@ interface EditorState {
9808
9823
  * Options for {@link useEditor}. Combines the engine callbacks with the
9809
9824
  * React-managed props the hook owns the lifecycle for.
9810
9825
  */
9811
- interface UseEditorOptions extends Pick<EditorCoreOptions, "onChange" | "onSelectionChange" | "onMentionTrigger" | "onMentionInputRemoved" | "canStartMention" | "isReadOnly"> {
9826
+ interface UseEditorOptions extends Pick<EditorCoreOptions, "onChange" | "onSelectionChange" | "onMentionTrigger" | "onMentionInputRemoved" | "canStartMention" | "resolveMention" | "isReadOnly"> {
9812
9827
  /** Controlled value (provide with `onChange`). */
9813
9828
  value?: string;
9814
9829
  /** Initial value for uncontrolled use (applied once on mount). */
@@ -9923,7 +9938,7 @@ interface ScrollControlButtonProps extends StylingProps, Pick<ActionButtonProps,
9923
9938
  *
9924
9939
  * @default document.body
9925
9940
  */
9926
- scrollRef?: React__default.RefObject<HTMLElement>;
9941
+ scrollRef?: React__default.RefObject<HTMLElement | null>;
9927
9942
  /**
9928
9943
  * Indicates whether the button should be hidden when the keyboard is being
9929
9944
  * used.
@@ -10476,7 +10491,7 @@ type GridListProps = Omit<StylingProps & ListProps<ListOption> & AriaGridListOpt
10476
10491
  */
10477
10492
  isEditing?: boolean;
10478
10493
  /** Handle to access the gridlist imperative methods. */
10479
- gridListHandle?: React__default.RefObject<ListHandle$1>;
10494
+ gridListHandle?: React__default.RefObject<ListHandle$1 | null>;
10480
10495
  }, "children" | "suppressTextValueWarning" | "allowDuplicateSelectionEvents" | "linkBehavior" | "keyboardDelegate" | "isVirtualized" | "filter">;
10481
10496
 
10482
10497
  declare const GridList: React__default.ForwardRefExoticComponent<GridListProps & React__default.RefAttributes<HTMLUListElement>>;
@@ -10595,7 +10610,7 @@ interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "op
10595
10610
 
10596
10611
  declare const ColorSwatchPicker: React__default.ForwardRefExoticComponent<ColorSwatchPickerProps & React__default.RefAttributes<HTMLDivElement>>;
10597
10612
 
10598
- declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isRequired" | "validate" | "isInvalid"> & Pick<SharedInputProps, "label" | "validationState" | "variant" | "labelPosition"> & InputMessage & React__default.RefAttributes<HTMLDivElement>>;
10613
+ declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isRequired" | "validate" | "isInvalid"> & Pick<SharedInputProps, "label" | "variant" | "validationState" | "labelPosition"> & InputMessage & React__default.RefAttributes<HTMLDivElement>>;
10599
10614
 
10600
10615
  type TimeFieldProps = StylingProps & Omit<Omit<TimeFieldStateOptions, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isInvalid" | "isRequired" | "validate"> & Pick<SharedInputProps, "variant" | "labelPosition" | "validationState" | "label"> & InputMessage;
10601
10616
 
@@ -10787,7 +10802,7 @@ declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttri
10787
10802
  declare const PanelGroup: React.ForwardRefExoticComponent<PanelGroupProps & React.RefAttributes<ImperativePanelGroupHandle>>;
10788
10803
 
10789
10804
  declare const PanelResizeHandle: {
10790
- ({ className, isDisabled, ...props }: PanelResizeHandleProps): react_jsx_runtime.JSX.Element;
10805
+ ({ className, isDisabled, ...props }: PanelResizeHandleProps): React.JSX.Element;
10791
10806
  displayName: string;
10792
10807
  };
10793
10808
 
@@ -10874,7 +10889,7 @@ type DateFieldProps = StylingProps & Omit<Omit<DateFieldStateOptions, "locale">
10874
10889
  openCalendarLabel?: string;
10875
10890
  };
10876
10891
 
10877
- declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "validationState" | "isRequired" | "validate" | "isInvalid" | "createCalendar"> & Pick<SharedInputProps, "label" | "validationState" | "variant" | "labelPosition"> & InputMessage & {
10892
+ declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "validationState" | "isRequired" | "validate" | "isInvalid" | "createCalendar"> & Pick<SharedInputProps, "label" | "variant" | "validationState" | "labelPosition"> & InputMessage & {
10878
10893
  pickerType?: DateFieldPickerType;
10879
10894
  openCalendarLabel?: string;
10880
10895
  } & React__default.RefAttributes<HTMLDivElement>>;
@@ -10985,7 +11000,7 @@ interface PointPickerContentProps extends StylingProps, Pick<FocusProps<Focusabl
10985
11000
  /** The ref to the element. */
10986
11001
  elementHandle?: React__default.RefObject<{
10987
11002
  focus: () => void;
10988
- }>;
11003
+ } | null>;
10989
11004
  /**
10990
11005
  * The callback function that is called when the cursor is moved.
10991
11006
  *
@@ -11161,11 +11176,11 @@ interface StatusCardProps extends Omit<StylingProps, keyof BlockProps> {
11161
11176
  }
11162
11177
 
11163
11178
  declare const iconMap: {
11164
- warning: react_jsx_runtime.JSX.Element;
11165
- error: react_jsx_runtime.JSX.Element;
11166
- active: react_jsx_runtime.JSX.Element;
11167
- success: react_jsx_runtime.JSX.Element;
11168
- denied: react_jsx_runtime.JSX.Element;
11179
+ warning: React__default.JSX.Element;
11180
+ error: React__default.JSX.Element;
11181
+ active: React__default.JSX.Element;
11182
+ success: React__default.JSX.Element;
11183
+ denied: React__default.JSX.Element;
11169
11184
  };
11170
11185
  declare const StatusCard: React__default.ForwardRefExoticComponent<StatusCardProps & React__default.RefAttributes<HTMLDivElement>>;
11171
11186
 
@@ -11277,7 +11292,7 @@ declare const Cell: React__default.ForwardRefExoticComponent<CellProps$1 & React
11277
11292
  interface UseTableDragAndDropOptions<T extends object = object> extends DragAndDropOptions<T> {
11278
11293
  /** Ref to the scrollable container element. When provided, auto-scroll
11279
11294
  * activates when dragging near container edges. */
11280
- scrollRef?: React__default.RefObject<HTMLElement>;
11295
+ scrollRef?: React__default.RefObject<HTMLElement | null>;
11281
11296
  }
11282
11297
  declare function useTableDragAndDrop<T extends object = object>(options: UseTableDragAndDropOptions<T>): DragAndDrop<T>;
11283
11298
 
@@ -11525,8 +11540,8 @@ declare const FileUploader: React__default.ForwardRefExoticComponent<FileUploade
11525
11540
  *
11526
11541
  * @param {IntersectionObserverOptions} options - The options for the
11527
11542
  * IntersectionObserver.
11528
- * @param {React.RefObject<HTMLElement>} options.ref - The ref of the target
11529
- * element to observe.
11543
+ * @param {React.RefObject<HTMLElement | null>} options.ref - The ref of the
11544
+ * target element to observe; it is null until the element mounts.
11530
11545
  * @param {(entry: IntersectionObserverEntry) => void} options.onIntersect - The
11531
11546
  * function to call when the target element intersects the root element.
11532
11547
  * @param {boolean} options.isDisabled - Whether the IntersectionObserver should
@@ -11534,14 +11549,14 @@ declare const FileUploader: React__default.ForwardRefExoticComponent<FileUploade
11534
11549
  * @param {number | number[]} options.threshold - The threshold(s) at which to
11535
11550
  * trigger the onIntersect function.
11536
11551
  * @param {string} options.rootMargin - The margin around the root element.
11537
- * @param {React.RefObject<HTMLElement>} options.root - The ref of the root
11538
- * element to observe.
11552
+ * @param {React.RefObject<HTMLElement | null>} options.root - The optional
11553
+ * ref of the root element to observe; it may be null before that element mounts.
11539
11554
  */
11540
11555
  declare function useIntersectionObserver({ ref, onIntersect, isDisabled, threshold, rootMargin, root, }: IntersectionObserverOptions): void;
11541
11556
  interface IntersectionObserverOptions {
11542
- ref: React__default.RefObject<HTMLElement>;
11557
+ ref: React__default.RefObject<HTMLElement | null>;
11543
11558
  onIntersect: (entry: IntersectionObserverEntry) => void;
11544
- root?: React__default.RefObject<HTMLElement>;
11559
+ root?: React__default.RefObject<HTMLElement | null>;
11545
11560
  rootMargin?: string;
11546
11561
  threshold?: number;
11547
11562
  isDisabled?: boolean;
@@ -11565,8 +11580,8 @@ interface IntersectionObserverOptions {
11565
11580
  * ```;
11566
11581
  *
11567
11582
  * @param {Object} options - The options object.
11568
- * @param {React.RefObject<HTMLElement>} options.ref - The ref object that
11569
- * points to the observed element.
11583
+ * @param {React.RefObject<HTMLElement | null>} options.ref - The ref object
11584
+ * that points to the observed element; it is null until the element mounts.
11570
11585
  * @param {Function} options.onResize - The callback function that is called
11571
11586
  * when the element is resized.
11572
11587
  * @param {boolean} options.isDisabled - A flag that indicates whether the
@@ -11580,7 +11595,7 @@ declare function useResizeObserver({ ref, onResize, isDisabled, }: ResizeObserve
11580
11595
  } | undefined;
11581
11596
  };
11582
11597
  interface ResizeObserverOptions {
11583
- ref: React__default.RefObject<HTMLElement>;
11598
+ ref: React__default.RefObject<HTMLElement | null>;
11584
11599
  onResize?: (entry: ResizeObserverEntry) => void;
11585
11600
  isDisabled?: boolean;
11586
11601
  }
@@ -11975,7 +11990,7 @@ declare function useLocalStorage<T>(key: string, initialValue: T): [T, SetValue<
11975
11990
  */
11976
11991
  declare function useTextSelection({ ref, onSelectionChange, onSelectionEnd, isDisabled, }: TextSelectionProps): void;
11977
11992
  interface TextSelectionProps {
11978
- ref: React__default.RefObject<HTMLElement>;
11993
+ ref: React__default.RefObject<HTMLElement | null>;
11979
11994
  onSelectionChange: (selection: Selection) => void;
11980
11995
  onSelectionEnd?: (selection: Selection) => void;
11981
11996
  isDisabled?: boolean;
@@ -12047,7 +12062,7 @@ declare function useLiveInteractionModality({ ownerDocument, }: {
12047
12062
  */
12048
12063
  declare function usePreventFocus({ ref, isDisabled, }: {
12049
12064
  /** The ref to the element that will be prevented from receiving focus. */
12050
- ref: React__default.RefObject<HTMLElement>;
12065
+ ref: React__default.RefObject<HTMLElement | null>;
12051
12066
  /** Whether the focus prevention is disabled. */
12052
12067
  isDisabled?: boolean;
12053
12068
  }): void;