@baseline-ui/core 3.6.0 → 3.7.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.
- package/dist/Accordion.mjs +1 -1
- package/dist/ActionGroup.mjs +1 -1
- package/dist/ActionIconButton.mjs +1 -1
- package/dist/AlertDialog.mjs +1 -1
- package/dist/AudioPlayer.mjs +1 -1
- package/dist/Box.mjs +1 -1
- package/dist/ButtonSelect.mjs +1 -1
- package/dist/Calendar.css +1 -1
- package/dist/Calendar.mjs +1 -1
- package/dist/ColorInput.mjs +1 -1
- package/dist/ColorSwatch.mjs +1 -1
- package/dist/ColorSwatchPicker.mjs +1 -1
- package/dist/ComboBox.mjs +1 -1
- package/dist/DateField.css +1 -1
- package/dist/DateField.mjs +1 -1
- package/dist/Dialog.mjs +1 -1
- package/dist/Disclosure.mjs +1 -1
- package/dist/Drawer.mjs +1 -1
- package/dist/Editor.css +1 -1
- package/dist/Editor.mjs +1 -1
- package/dist/FileInput.mjs +1 -1
- package/dist/FileList.mjs +1 -1
- package/dist/FileUploader.mjs +1 -1
- package/dist/FreehandCanvas.mjs +1 -1
- package/dist/GridList.mjs +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/ImageDropZone.mjs +1 -1
- package/dist/ImageGallery.mjs +1 -1
- package/dist/InlineAlert.mjs +1 -1
- package/dist/InlineToolbar.mjs +2 -2
- package/dist/Kbd.mjs +1 -1
- package/dist/ListBox.mjs +1 -1
- package/dist/Markdown.css +1 -1
- package/dist/Markdown.mjs +1 -1
- package/dist/Menu.mjs +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NumberInput.mjs +1 -1
- package/dist/Pagination.mjs +1 -1
- package/dist/PointPicker.mjs +1 -1
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.mjs +1 -1
- package/dist/Preview.mjs +1 -1
- package/dist/RadioGroup.mjs +1 -1
- package/dist/Reaction.mjs +1 -1
- package/dist/SearchInput.mjs +1 -1
- package/dist/Select.mjs +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/StatusCard.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Switch.css +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Tabs.mjs +1 -1
- package/dist/Tag.mjs +1 -1
- package/dist/TagGroup.mjs +1 -1
- package/dist/TaggedPagination.mjs +1 -1
- package/dist/TextInput.mjs +1 -1
- package/dist/ThemeProvider.mjs +1 -1
- package/dist/TimeField.mjs +1 -1
- package/dist/Toast.mjs +1 -1
- package/dist/ToggleIconButton.mjs +1 -1
- package/dist/Toolbar.mjs +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/TreeView.mjs +1 -1
- package/dist/UNSAFE_ListBox.mjs +1 -1
- package/dist/{chunk-XG6JJCCJ.mjs → chunk-2JRDTJWJ.mjs} +1 -1
- package/dist/{chunk-266F6F4Y.mjs → chunk-3IPRT57V.mjs} +1 -1
- package/dist/{chunk-J2KZM2I2.mjs → chunk-4QGZDJW4.mjs} +1 -1
- package/dist/chunk-54ZKQAA3.mjs +10 -0
- package/dist/{chunk-AMLFQDKI.mjs → chunk-5EI2562M.mjs} +1 -1
- package/dist/{chunk-7OUGARUO.mjs → chunk-5GW36EQJ.mjs} +1 -1
- package/dist/{chunk-3RWM6E56.mjs → chunk-5ILCVLWY.mjs} +1 -1
- package/dist/{chunk-UY76QEJC.mjs → chunk-5W6G3ZUT.mjs} +1 -1
- package/dist/{chunk-XDTZXNGJ.mjs → chunk-5YKRWGEJ.mjs} +1 -1
- package/dist/{chunk-LRF3YZWU.mjs → chunk-6CEV43ZA.mjs} +1 -1
- package/dist/chunk-6TRBOQVN.mjs +10 -0
- package/dist/chunk-73UBSCJ2.mjs +10 -0
- package/dist/{chunk-RITIRWKN.mjs → chunk-7YCV7MPI.mjs} +1 -1
- package/dist/{chunk-4T7P66ZA.mjs → chunk-AQTRFPF2.mjs} +1 -1
- package/dist/{chunk-HABKIEKC.mjs → chunk-B5VHU77N.mjs} +1 -1
- package/dist/{chunk-IC5SBDP3.mjs → chunk-BULEKXBD.mjs} +1 -1
- package/dist/chunk-CBV6KXGO.mjs +30 -0
- package/dist/chunk-CD5KKXIM.mjs +10 -0
- package/dist/{chunk-3YVVIFY7.mjs → chunk-DG5VNJOH.mjs} +1 -1
- package/dist/{chunk-O7XK2WIX.mjs → chunk-DIL5HL6K.mjs} +2 -2
- package/dist/{chunk-7HVUCDKZ.mjs → chunk-EDMVODCD.mjs} +1 -1
- package/dist/{chunk-PYV5J322.mjs → chunk-EFFODO2N.mjs} +1 -1
- package/dist/{chunk-XSORBGUU.mjs → chunk-EGYIHFEQ.mjs} +1 -1
- package/dist/{chunk-5VNC6UYE.mjs → chunk-F3THHK5C.mjs} +1 -1
- package/dist/chunk-F56P4EKI.mjs +10 -0
- package/dist/{chunk-3PU6C5US.mjs → chunk-FJO6KCT5.mjs} +2 -2
- package/dist/{chunk-ZXEWW3E7.mjs → chunk-G5MSZV5O.mjs} +1 -1
- package/dist/chunk-GJ6ZPLFR.mjs +10 -0
- package/dist/{chunk-2KX2HY2H.mjs → chunk-HTRO6BM5.mjs} +1 -1
- package/dist/{chunk-6LP7UKPC.mjs → chunk-IMXJCV7G.mjs} +1 -1
- package/dist/{chunk-HCQI7MNN.mjs → chunk-IN7BLI4M.mjs} +1 -1
- package/dist/{chunk-2CXZQGP5.mjs → chunk-IVDIKT6F.mjs} +1 -1
- package/dist/{chunk-GDIKHTP3.mjs → chunk-JXCL5CUV.mjs} +1 -1
- package/dist/chunk-K3WFKO7R.mjs +10 -0
- package/dist/{chunk-F67SYAEW.mjs → chunk-L45T2KGW.mjs} +1 -1
- package/dist/{chunk-7EQIV4GX.mjs → chunk-LDWNE2JT.mjs} +1 -1
- package/dist/{chunk-ARCCPNHM.mjs → chunk-LY2ZVEGJ.mjs} +1 -1
- package/dist/{chunk-TTJTZLW5.mjs → chunk-M3R4ZM34.mjs} +1 -1
- package/dist/{chunk-WB7EFOP7.mjs → chunk-MJPCLLDU.mjs} +1 -1
- package/dist/{chunk-VZ5CLAIL.mjs → chunk-MKHLBKSN.mjs} +1 -1
- package/dist/{chunk-HJGMXLKN.mjs → chunk-MURSKAKT.mjs} +1 -1
- package/dist/{chunk-6M77HEKA.mjs → chunk-MYT5CSGX.mjs} +2 -2
- package/dist/{chunk-FF7H33Z5.mjs → chunk-NLVJYKSA.mjs} +1 -1
- package/dist/{chunk-K4N2ADJO.mjs → chunk-NO3DNA2U.mjs} +1 -1
- package/dist/{chunk-SH7ZI4CA.mjs → chunk-NT2MFIKD.mjs} +1 -1
- package/dist/{chunk-RUHZRYDJ.mjs → chunk-O6PPXOEX.mjs} +1 -1
- package/dist/chunk-OBEPT4LR.mjs +10 -0
- package/dist/{chunk-JTKDC2CM.mjs → chunk-OPIPJTLG.mjs} +1 -1
- package/dist/{chunk-7KZEJYIU.mjs → chunk-P6V5EAYL.mjs} +1 -1
- package/dist/{chunk-RFVLSR2P.mjs → chunk-QIYZRQGP.mjs} +1 -1
- package/dist/{chunk-XKUZVQ2A.mjs → chunk-QL7SC5BW.mjs} +1 -1
- package/dist/{chunk-SLFKSR3T.mjs → chunk-SAATXQOW.mjs} +1 -1
- package/dist/chunk-SSWWJZRE.mjs +10 -0
- package/dist/{chunk-G2T6UJ66.mjs → chunk-SXZP556C.mjs} +1 -1
- package/dist/{chunk-C2B7L5CL.mjs → chunk-TFBJ767L.mjs} +1 -1
- package/dist/{chunk-ZI7HJRJA.mjs → chunk-TLU2GNUT.mjs} +1 -1
- package/dist/{chunk-GFKZXGWJ.mjs → chunk-UCDGZFQ7.mjs} +1 -1
- package/dist/{chunk-VJUSOXPW.mjs → chunk-UPCEZ32D.mjs} +1 -1
- package/dist/chunk-VE2UA2AH.mjs +0 -0
- package/dist/{chunk-JDIGAVFU.mjs → chunk-VIMSH5F5.mjs} +1 -1
- package/dist/{chunk-GTHN5ZCZ.mjs → chunk-VNWKXT3X.mjs} +1 -1
- package/dist/chunk-VPVF5N62.mjs +10 -0
- package/dist/chunk-VQ2K6Q3G.mjs +10 -0
- package/dist/{chunk-LQHFBXCW.mjs → chunk-X3ACY7IY.mjs} +2 -2
- package/dist/chunk-XC2S3RLC.mjs +10 -0
- package/dist/{chunk-XYK5KKOH.mjs → chunk-XVL2GXTB.mjs} +1 -1
- package/dist/{chunk-GJTOYWLJ.mjs → chunk-YAI33K42.mjs} +1 -1
- package/dist/{chunk-ZP6QG5FX.mjs → chunk-YEIRJNEA.mjs} +1 -1
- package/dist/{chunk-ZNLIC44U.mjs → chunk-YNJD34U4.mjs} +1 -1
- package/dist/{chunk-GAT5QH2M.mjs → chunk-YQKEP62C.mjs} +1 -1
- package/dist/chunk-ZXN5VT4G.mjs +10 -0
- package/dist/hooks/useMedia.mjs +1 -1
- package/dist/hooks/useTextSelection.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +225 -89
- package/dist/index.js +22 -21
- package/dist/index.mjs +1 -1
- package/dist/utils/selection.mjs +1 -0
- package/package.json +4 -4
- package/sbom.json +6 -6
- package/dist/chunk-335C37NB.mjs +0 -10
- package/dist/chunk-42SQX2EB.mjs +0 -10
- package/dist/chunk-EIB7MPRA.mjs +0 -10
- package/dist/chunk-GYKBMDSJ.mjs +0 -10
- package/dist/chunk-IHES52NR.mjs +0 -10
- package/dist/chunk-JKOCFSBH.mjs +0 -10
- package/dist/chunk-KX2GDQKJ.mjs +0 -10
- package/dist/chunk-LV5AUNI2.mjs +0 -10
- package/dist/chunk-NMGKHMH3.mjs +0 -10
- package/dist/chunk-O4YMXTNR.mjs +0 -10
- package/dist/chunk-QC76UPJB.mjs +0 -29
- package/dist/chunk-RFVPGD6N.mjs +0 -10
- package/dist/chunk-RXVMJVRX.mjs +0 -10
- /package/dist/{chunk-MAJ74VNE.mjs → chunk-HMAVZPRE.mjs} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -6340,7 +6340,7 @@ declare const capitalize: (str: string) => string;
|
|
|
6340
6340
|
* Without DOMParser (on the server) it only strips tags: entities are not
|
|
6341
6341
|
* decoded, script or style content is kept, and the result is not sanitized.
|
|
6342
6342
|
*/
|
|
6343
|
-
declare const getPlainText: (text: string) => string;
|
|
6343
|
+
declare const getPlainText$1: (text: string) => string;
|
|
6344
6344
|
|
|
6345
6345
|
/**
|
|
6346
6346
|
* Checks whether a given DOM node is inside an iframe.
|
|
@@ -7633,6 +7633,8 @@ declare const IconSlider: React__default.ForwardRefExoticComponent<IconSliderPro
|
|
|
7633
7633
|
interface SwitchProps extends Omit<AriaSwitchProps, "children" | "isRequired" | "validate" | "validationBehavior" | "validationState" | "isInvalid" | "aria-errormessage" | "onClick" | "onPress" | "onPressStart" | "onPressEnd" | "onPressUp" | "onPressChange">, StylingProps {
|
|
7634
7634
|
/** The label to display next to the switch. */
|
|
7635
7635
|
label?: React__default.ReactNode;
|
|
7636
|
+
/** Helper text shown below the label and announced as its accessible description. */
|
|
7637
|
+
description?: string;
|
|
7636
7638
|
/** The position of the label. */
|
|
7637
7639
|
labelPosition?: "top" | "left";
|
|
7638
7640
|
/** The status label to display next to the switch. */
|
|
@@ -9598,6 +9600,10 @@ interface RichTextEditorText {
|
|
|
9598
9600
|
underline?: boolean;
|
|
9599
9601
|
color?: string;
|
|
9600
9602
|
backgroundColor?: string;
|
|
9603
|
+
/** CSS value, passed through opaquely. */
|
|
9604
|
+
fontFamily?: string;
|
|
9605
|
+
/** CSS value, passed through opaquely. */
|
|
9606
|
+
fontSize?: string;
|
|
9601
9607
|
}
|
|
9602
9608
|
interface RichTextEditorLink {
|
|
9603
9609
|
type: typeof LINK;
|
|
@@ -9617,9 +9623,16 @@ interface RichTextEditorMentionInput {
|
|
|
9617
9623
|
type RichTextEditorInline = RichTextEditorText | RichTextEditorLink | RichTextEditorMention | RichTextEditorMentionInput;
|
|
9618
9624
|
interface RichTextEditorParagraph {
|
|
9619
9625
|
type: typeof PARAGRAPH;
|
|
9626
|
+
/** CSS `text-align` value, passed through opaquely. */
|
|
9627
|
+
textAlign?: string;
|
|
9620
9628
|
children: RichTextEditorInline[];
|
|
9621
9629
|
}
|
|
9622
9630
|
type RichTextEditorDoc = RichTextEditorParagraph[];
|
|
9631
|
+
/**
|
|
9632
|
+
* Returns the document as plain text, without formatting. Paragraphs are
|
|
9633
|
+
* separated by `"\n"` and a mention contributes its display name.
|
|
9634
|
+
*/
|
|
9635
|
+
declare function getPlainText(doc: RichTextEditorDoc): string;
|
|
9623
9636
|
|
|
9624
9637
|
interface ModelPoint {
|
|
9625
9638
|
/** [paragraphIndex, inlineIndex within paragraph.children] */
|
|
@@ -9631,16 +9644,37 @@ interface ModelRange {
|
|
|
9631
9644
|
anchor: ModelPoint;
|
|
9632
9645
|
focus: ModelPoint;
|
|
9633
9646
|
}
|
|
9647
|
+
/**
|
|
9648
|
+
* Compares two points in document order: `-1` when `a` comes before `b`, `1`
|
|
9649
|
+
* when it comes after, `0` when they are the same point.
|
|
9650
|
+
*/
|
|
9651
|
+
declare function comparePoints(a: ModelPoint, b: ModelPoint): -1 | 0 | 1;
|
|
9652
|
+
/** The point at the very start of the document. */
|
|
9653
|
+
declare function docStart(doc: RichTextEditorDoc): ModelPoint;
|
|
9654
|
+
/** The point at the very end of the document. */
|
|
9655
|
+
declare function docEnd(doc: RichTextEditorDoc): ModelPoint;
|
|
9634
9656
|
|
|
9635
9657
|
type MarkName = "bold" | "italic" | "underline";
|
|
9636
|
-
/**
|
|
9658
|
+
/**
|
|
9659
|
+
* Formatting at a selection. Over a range, `bold`, `italic` and `underline` are
|
|
9660
|
+
* `true` when every covered text run has the mark, `false` when none does, and
|
|
9661
|
+
* absent when the runs differ. At a collapsed caret, and with no selection,
|
|
9662
|
+
* they are always `true` or `false`, and reflect marks toggled for the next
|
|
9663
|
+
* typed text. A value mark is its value when every covered run shares it,
|
|
9664
|
+
* absent when none has one, and `null` when the runs differ.
|
|
9665
|
+
*/
|
|
9637
9666
|
interface ActiveMarks {
|
|
9638
|
-
bold?:
|
|
9639
|
-
italic?:
|
|
9640
|
-
underline?:
|
|
9641
|
-
color?: string;
|
|
9642
|
-
backgroundColor?: string;
|
|
9667
|
+
bold?: boolean;
|
|
9668
|
+
italic?: boolean;
|
|
9669
|
+
underline?: boolean;
|
|
9670
|
+
color?: string | null;
|
|
9671
|
+
backgroundColor?: string | null;
|
|
9672
|
+
fontFamily?: string | null;
|
|
9673
|
+
fontSize?: string | null;
|
|
9643
9674
|
}
|
|
9675
|
+
type ValueMarkKey = "color" | "backgroundColor" | "fontFamily" | "fontSize";
|
|
9676
|
+
/** A CSS property the engine reads back from HTML and the DOM. */
|
|
9677
|
+
type EditorStyle = ValueMarkKey | "textAlign";
|
|
9644
9678
|
|
|
9645
9679
|
/**
|
|
9646
9680
|
* EditorCore.ts — framework-free orchestrator for the rich-text editor.
|
|
@@ -9660,6 +9694,14 @@ interface ActiveMarks {
|
|
|
9660
9694
|
* - Identity-diffing: commands that return the same `doc` reference are no-ops.
|
|
9661
9695
|
*/
|
|
9662
9696
|
|
|
9697
|
+
interface SelectOptions {
|
|
9698
|
+
/**
|
|
9699
|
+
* Whether to focus the editor before writing the selection. Defaults to
|
|
9700
|
+
* true. With false an unfocused editor stays unfocused and applies the
|
|
9701
|
+
* range when it next gains focus.
|
|
9702
|
+
*/
|
|
9703
|
+
focus?: boolean;
|
|
9704
|
+
}
|
|
9663
9705
|
interface SelectionState {
|
|
9664
9706
|
/** Active marks at the current selection (merged with pendingMarks). */
|
|
9665
9707
|
marks: ActiveMarks;
|
|
@@ -9674,6 +9716,8 @@ interface SelectionState {
|
|
|
9674
9716
|
interface EditorCoreOptions {
|
|
9675
9717
|
/** Called after each user-visible document change; receives serialized HTML. */
|
|
9676
9718
|
onChange?: (html: string) => void;
|
|
9719
|
+
/** Called alongside `onChange` with the document model after each user-visible change. */
|
|
9720
|
+
onDocChange?: (doc: RichTextEditorDoc) => void;
|
|
9677
9721
|
/** Called when the selection changes. */
|
|
9678
9722
|
onSelectionChange?: (state: SelectionState) => void;
|
|
9679
9723
|
/**
|
|
@@ -9705,6 +9749,34 @@ interface EditorCoreOptions {
|
|
|
9705
9749
|
* selection). Defaults to enabled.
|
|
9706
9750
|
*/
|
|
9707
9751
|
autoLink?: () => boolean;
|
|
9752
|
+
/**
|
|
9753
|
+
* Runs on a paste after the target, read-only and composition guards. A
|
|
9754
|
+
* returned doc is inserted at the caret as a fragment; `null` swallows the
|
|
9755
|
+
* paste; `undefined` falls through to the built-in paste pipeline. A throw
|
|
9756
|
+
* swallows the paste and is rethrown asynchronously.
|
|
9757
|
+
*/
|
|
9758
|
+
onPaste?: (event: ClipboardEvent) => RichTextEditorDoc | null | undefined;
|
|
9759
|
+
/**
|
|
9760
|
+
* Runs on `copy` and `cut` with the fragment the selection covers, or an
|
|
9761
|
+
* empty document when the selection is collapsed. Return true after writing
|
|
9762
|
+
* the clipboard: the engine then calls `preventDefault()` and, for `cut` with
|
|
9763
|
+
* a selection, deletes it.
|
|
9764
|
+
*/
|
|
9765
|
+
onCopy?: (event: ClipboardEvent, fragment: RichTextEditorDoc) => boolean;
|
|
9766
|
+
/**
|
|
9767
|
+
* Maximum document length, counted as `docLength` counts it. Typing, pasting,
|
|
9768
|
+
* soft breaks and IME input stop at the limit; a selection being replaced
|
|
9769
|
+
* counts as free space. Undefined means unlimited.
|
|
9770
|
+
*/
|
|
9771
|
+
maxLength?: () => number | undefined;
|
|
9772
|
+
/**
|
|
9773
|
+
* The CSS properties read from HTML the engine parses: `setValue`. A style
|
|
9774
|
+
* missing here is dropped from that HTML. The DOM the engine renders itself
|
|
9775
|
+
* is always read back in full after native input, and pasted and dropped
|
|
9776
|
+
* HTML always reads only `color` and `backgroundColor`; use `onPaste` to
|
|
9777
|
+
* bring in more. Undefined means `color` and `backgroundColor`.
|
|
9778
|
+
*/
|
|
9779
|
+
htmlStyles?: () => readonly EditorStyle[] | undefined;
|
|
9708
9780
|
/** When this returns true all mutation inputs are blocked (preventDefault'd). */
|
|
9709
9781
|
isReadOnly?: () => boolean;
|
|
9710
9782
|
/**
|
|
@@ -9715,13 +9787,20 @@ interface EditorCoreOptions {
|
|
|
9715
9787
|
* leaving a consumer free to wire their own. Defaults to enabled.
|
|
9716
9788
|
*/
|
|
9717
9789
|
areKeyboardShortcutsEnabled?: () => boolean;
|
|
9790
|
+
/**
|
|
9791
|
+
* Whether Enter splits the paragraph instead of inserting a soft break.
|
|
9792
|
+
* Shift+Enter always inserts a soft break.
|
|
9793
|
+
*
|
|
9794
|
+
* @default false
|
|
9795
|
+
*/
|
|
9796
|
+
enterInsertsParagraph?: () => boolean;
|
|
9718
9797
|
}
|
|
9719
9798
|
/** Names of commands that EditorCore can dispatch via exec(). */
|
|
9720
|
-
type CommandName = "toggleMark" | "setMarkValue" | "wrapLink" | "updateLinkUrl" | "unwrapLink" | "deleteRange" | "insertText" | "insertFragment" | "insertSoftBreak" | "insertMentionInput" | "confirmMention" | "removeMentionInput";
|
|
9799
|
+
type CommandName = "toggleMark" | "setMarkValue" | "wrapLink" | "updateLinkUrl" | "unwrapLink" | "deleteRange" | "insertText" | "insertFragment" | "insertSoftBreak" | "insertParagraph" | "insertMentionInput" | "confirmMention" | "removeMentionInput";
|
|
9721
9800
|
/** Argument tuple for each command (beyond doc + range which are implicit). */
|
|
9722
9801
|
interface CommandArgs {
|
|
9723
9802
|
toggleMark: [mark: MarkName];
|
|
9724
|
-
setMarkValue: [key:
|
|
9803
|
+
setMarkValue: [key: ValueMarkKey, value?: string];
|
|
9725
9804
|
wrapLink: [url: string];
|
|
9726
9805
|
updateLinkUrl: [url: string];
|
|
9727
9806
|
unwrapLink: [];
|
|
@@ -9729,6 +9808,7 @@ interface CommandArgs {
|
|
|
9729
9808
|
insertText: [text: string];
|
|
9730
9809
|
insertFragment: [fragment: RichTextEditorDoc];
|
|
9731
9810
|
insertSoftBreak: [];
|
|
9811
|
+
insertParagraph: [];
|
|
9732
9812
|
insertMentionInput: [];
|
|
9733
9813
|
confirmMention: [user: {
|
|
9734
9814
|
id: string;
|
|
@@ -9750,33 +9830,12 @@ declare class EditorCore {
|
|
|
9750
9830
|
* editor's own edits, so re-sending an unchanged `value` still reverts it.
|
|
9751
9831
|
*/
|
|
9752
9832
|
private lastAppliedValue;
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
* was never written to the DOM. Replayed by the focus handler.
|
|
9757
|
-
*/
|
|
9758
|
-
private needsSelectionRestore;
|
|
9833
|
+
/** Doc last applied by {@link setDoc}; cleared on own edits like `lastAppliedValue`. */
|
|
9834
|
+
private lastAppliedDoc;
|
|
9835
|
+
private readonly selection;
|
|
9759
9836
|
private composing;
|
|
9760
|
-
private
|
|
9761
|
-
|
|
9762
|
-
* Number of upcoming selectionchange events that must NOT clear pending marks.
|
|
9763
|
-
*
|
|
9764
|
-
* handleSelectionChange normally clears pending the moment the caret leaves
|
|
9765
|
-
* pending.caretOffset. But a single user keystroke (and insertSoftBreak)
|
|
9766
|
-
* triggers our own writeSelection, which the browser reports back as one or
|
|
9767
|
-
* more selectionchange events — and in shadow DOM (notably Chromium and
|
|
9768
|
-
* Firefox) one of those can arrive with the post-keystroke caret offset before
|
|
9769
|
-
* syncFromDom has updated pending.caretOffset to match. Without this guard,
|
|
9770
|
-
* that transient mismatch clears pending mid-typing, the toolbar flips off,
|
|
9771
|
-
* and the next character is no longer colored. We absorb a small burst of
|
|
9772
|
-
* these self-inflicted events (a single boolean is not enough — shadow DOM can
|
|
9773
|
-
* emit several per action) and re-sync caretOffset to the real caret as they
|
|
9774
|
-
* arrive, so a genuine later caret move still clears pending correctly.
|
|
9775
|
-
*
|
|
9776
|
-
* Confirmed load-bearing: removing it makes the shadow-DOM "color buttons stay
|
|
9777
|
-
* active while typing" CT flake/time out in Chromium.
|
|
9778
|
-
*/
|
|
9779
|
-
private preservePendingSelectionChanges;
|
|
9837
|
+
private enterHasShift;
|
|
9838
|
+
private readonly pendingMarks;
|
|
9780
9839
|
private history;
|
|
9781
9840
|
private opts;
|
|
9782
9841
|
private el;
|
|
@@ -9796,19 +9855,18 @@ declare class EditorCore {
|
|
|
9796
9855
|
attach(el: HTMLElement): () => void;
|
|
9797
9856
|
private readonly handleBeforeInputBound;
|
|
9798
9857
|
private readonly handleInputBound;
|
|
9858
|
+
private isClipboardTargetInEditor;
|
|
9799
9859
|
private readonly handlePasteBound;
|
|
9860
|
+
private readonly handleCopyBound;
|
|
9861
|
+
private readonly handleKeyDownBound;
|
|
9862
|
+
private readonly handleDocumentKeyDownBound;
|
|
9800
9863
|
private readonly handlePointerDownBound;
|
|
9801
9864
|
private readonly handleFocusBound;
|
|
9802
9865
|
private readonly handleCompositionStartBound;
|
|
9803
9866
|
private readonly handleCompositionEndBound;
|
|
9804
9867
|
private readonly handleSelectionChangeBound;
|
|
9805
|
-
/**
|
|
9806
|
-
|
|
9807
|
-
* selection is inside the editor. Leaves cachedRange untouched when the
|
|
9808
|
-
* selection is elsewhere (dialogs, toolbar popovers) or unreadable.
|
|
9809
|
-
*/
|
|
9810
|
-
private refreshSelectionFromDom;
|
|
9811
|
-
getDoc(): RichTextEditorDoc;
|
|
9868
|
+
/** The full document, or the normalized fragment `range` covers. */
|
|
9869
|
+
getDoc(range?: ModelRange): RichTextEditorDoc;
|
|
9812
9870
|
getValue(): string;
|
|
9813
9871
|
/**
|
|
9814
9872
|
* Sets the document from an HTML string (controlled entry point).
|
|
@@ -9821,53 +9879,89 @@ declare class EditorCore {
|
|
|
9821
9879
|
setValue(html: string, opts?: {
|
|
9822
9880
|
emit?: boolean;
|
|
9823
9881
|
}): void;
|
|
9882
|
+
/**
|
|
9883
|
+
* Sets the document from a model (controlled entry point), the counterpart of
|
|
9884
|
+
* {@link setValue}: normalizes, keeps the caret offset, records no history and
|
|
9885
|
+
* emits only with `emit: true`.
|
|
9886
|
+
*
|
|
9887
|
+
* SKIPS (no-op) when `doc` is the current document, the object last applied
|
|
9888
|
+
* here, or has the same content as the current document.
|
|
9889
|
+
*/
|
|
9890
|
+
setDoc(doc: RichTextEditorDoc, opts?: {
|
|
9891
|
+
emit?: boolean;
|
|
9892
|
+
}): void;
|
|
9893
|
+
private replaceDoc;
|
|
9824
9894
|
private static docHasMentionInput;
|
|
9825
9895
|
/**
|
|
9826
9896
|
* Dispatches a named command at the current selection.
|
|
9827
9897
|
*
|
|
9828
9898
|
* Identity-diff: if the command returns the same `doc` reference (no-op),
|
|
9829
|
-
* nothing changes — except for `toggleMark` on a collapsed
|
|
9830
|
-
*
|
|
9899
|
+
* nothing changes — except for `toggleMark` and `setMarkValue` on a collapsed
|
|
9900
|
+
* selection, which set pendingMarks and emit onSelectionChange.
|
|
9831
9901
|
*/
|
|
9832
9902
|
exec<K extends CommandName>(name: K, ...args: CommandArgs[K]): void;
|
|
9903
|
+
/** `args` cut to what fits under maxLength, or null when nothing does. */
|
|
9904
|
+
private fitToCapacity;
|
|
9905
|
+
private maxLength;
|
|
9906
|
+
private clampToMaxLength;
|
|
9907
|
+
/**
|
|
9908
|
+
* Where text inserted over the last known range ends in `read`; the fallback
|
|
9909
|
+
* when the DOM caret cannot be read.
|
|
9910
|
+
*/
|
|
9911
|
+
private insertionEnd;
|
|
9912
|
+
/** Characters that can still be inserted over `range`; undefined when unlimited. */
|
|
9913
|
+
private capacity;
|
|
9833
9914
|
undo(): void;
|
|
9834
9915
|
redo(): void;
|
|
9835
9916
|
canUndo(): boolean;
|
|
9836
9917
|
canRedo(): boolean;
|
|
9837
9918
|
focus(): void;
|
|
9838
|
-
private hasFocus;
|
|
9839
9919
|
setCaretPosition(absoluteOffset: number): void;
|
|
9840
9920
|
/**
|
|
9841
9921
|
* Restores a model selection: focuses the editor and writes the range to
|
|
9842
|
-
* both the DOM and
|
|
9922
|
+
* both the DOM and the editor selection. Used by toolbar popovers (e.g. the color
|
|
9843
9923
|
* picker) that captured the selection before taking focus — on Firefox,
|
|
9844
9924
|
* refocusing a contenteditable collapses its DOM selection, so the range
|
|
9845
9925
|
* must be re-applied explicitly before dispatching a command.
|
|
9926
|
+
*
|
|
9927
|
+
* With `focus: false` an unfocused editor keeps focus where it is: the
|
|
9928
|
+
* range scopes the next command and is written to the DOM when the editor
|
|
9929
|
+
* regains focus. A toolbar input that formats the whole document on Enter
|
|
9930
|
+
* relies on this, since focusing the editor during the keydown would let
|
|
9931
|
+
* the key's default action insert a paragraph.
|
|
9846
9932
|
*/
|
|
9847
|
-
select(range: ModelRange): void;
|
|
9933
|
+
select(range: ModelRange, options?: SelectOptions): void;
|
|
9848
9934
|
selectStart(): void;
|
|
9849
9935
|
selectEnd(): void;
|
|
9936
|
+
/** Selects the whole document. */
|
|
9937
|
+
selectAll(options?: SelectOptions): void;
|
|
9938
|
+
/**
|
|
9939
|
+
* The selection state computed now, from the live DOM selection when it is
|
|
9940
|
+
* inside the editor and otherwise from the last known range.
|
|
9941
|
+
*/
|
|
9850
9942
|
getSelectionState(): SelectionState;
|
|
9851
9943
|
private buildSelectionState;
|
|
9852
|
-
private
|
|
9944
|
+
private notifyChange;
|
|
9945
|
+
private emitSelectionChange;
|
|
9853
9946
|
/**
|
|
9854
|
-
*
|
|
9855
|
-
*
|
|
9856
|
-
* We store the FULL effective marks snapshot (base + toggle) so that
|
|
9857
|
-
* applyPendingMarks can apply them directly to the just-typed range.
|
|
9858
|
-
* Toggling the same mark a second time returns to the base state.
|
|
9947
|
+
* Every document change ends here: applies the doc and range, renders,
|
|
9948
|
+
* places the selection and notifies consumers, per `source`.
|
|
9859
9949
|
*/
|
|
9860
|
-
private
|
|
9950
|
+
private commit;
|
|
9861
9951
|
/**
|
|
9862
|
-
*
|
|
9863
|
-
*
|
|
9952
|
+
* Native typing at the limit would insert at the caret and then lose its tail
|
|
9953
|
+
* when syncFromDom cuts from the document's end; insert the part that fits
|
|
9954
|
+
* through the model instead. Returns whether it handled the event.
|
|
9864
9955
|
*/
|
|
9865
|
-
private
|
|
9866
|
-
private
|
|
9956
|
+
private insertOverflowingText;
|
|
9957
|
+
private handleNativeInsert;
|
|
9867
9958
|
/**
|
|
9868
|
-
*
|
|
9959
|
+
* Spellcheck and autocorrect replace a word natively, which can drop the
|
|
9960
|
+
* replaced run's marks; replaces it through the model instead. Returns
|
|
9961
|
+
* whether it handled the event.
|
|
9869
9962
|
*/
|
|
9870
|
-
private
|
|
9963
|
+
private replaceTargetText;
|
|
9964
|
+
private breakCommand;
|
|
9871
9965
|
private handleBeforeInput;
|
|
9872
9966
|
/**
|
|
9873
9967
|
* Returns true when the current caret position is preceded by a word boundary
|
|
@@ -9875,6 +9969,7 @@ declare class EditorCore {
|
|
|
9875
9969
|
*/
|
|
9876
9970
|
private shouldTriggerMention;
|
|
9877
9971
|
private lastCharOf;
|
|
9972
|
+
private allowedStyles;
|
|
9878
9973
|
private autoLinkEnabled;
|
|
9879
9974
|
/**
|
|
9880
9975
|
* Gates {@link findAutoLinkBeforeCaret} on the feature being enabled and no
|
|
@@ -9895,7 +9990,8 @@ declare class EditorCore {
|
|
|
9895
9990
|
* Wraps a previously-detected token span (absolute offsets in the CURRENT
|
|
9896
9991
|
* doc) in a link, recording its own history entry and leaving the caret where
|
|
9897
9992
|
* it is (wrapLink is length-preserving). Called right after the delimiter that
|
|
9898
|
-
* triggered the conversion has been inserted
|
|
9993
|
+
* triggered the conversion has been inserted; does nothing when that insert
|
|
9994
|
+
* was refused and left the document at `docBefore`.
|
|
9899
9995
|
*/
|
|
9900
9996
|
private applyAutoLink;
|
|
9901
9997
|
private handlePasteInput;
|
|
@@ -9906,24 +10002,9 @@ declare class EditorCore {
|
|
|
9906
10002
|
* back into a model doc and reconciles with internal state.
|
|
9907
10003
|
*/
|
|
9908
10004
|
private syncFromDom;
|
|
9909
|
-
/**
|
|
9910
|
-
* Apply pending marks to the text that was just typed.
|
|
9911
|
-
*
|
|
9912
|
-
* The just-typed range is determined by diffing the pre-input caret absolute
|
|
9913
|
-
* offset against the post-input caret absolute offset.
|
|
9914
|
-
*/
|
|
9915
|
-
private applyPendingMarks;
|
|
9916
|
-
/**
|
|
9917
|
-
* Applies the pending mark snapshot to the [preOffset, postOffset] range,
|
|
9918
|
-
* re-deriving the range from absolute offsets before each command (commands
|
|
9919
|
-
* may split nodes and stale a ModelRange). Returns the resulting doc by
|
|
9920
|
-
* identity when no mark changed.
|
|
9921
|
-
*/
|
|
9922
|
-
private applyPendingMarkSnapshot;
|
|
9923
10005
|
private handleSelectionChange;
|
|
9924
10006
|
private dispatchCommand;
|
|
9925
10007
|
private collapsedAtDocEnd;
|
|
9926
|
-
private rangesEqual;
|
|
9927
10008
|
}
|
|
9928
10009
|
|
|
9929
10010
|
/**
|
|
@@ -9967,23 +10048,63 @@ interface EditorState {
|
|
|
9967
10048
|
redo: EditorCore["redo"];
|
|
9968
10049
|
getValue: EditorCore["getValue"];
|
|
9969
10050
|
setValue: EditorCore["setValue"];
|
|
10051
|
+
getDoc: EditorCore["getDoc"];
|
|
10052
|
+
setDoc: EditorCore["setDoc"];
|
|
10053
|
+
selectAll: EditorCore["selectAll"];
|
|
10054
|
+
/**
|
|
10055
|
+
* Selects `range`, focusing the editor first unless `options.focus` is
|
|
10056
|
+
* false. Does nothing until the editor is attached to an element.
|
|
10057
|
+
*/
|
|
10058
|
+
select: EditorCore["select"];
|
|
10059
|
+
/**
|
|
10060
|
+
* The selection state computed now. Unlike the reactive
|
|
10061
|
+
* {@link selectionState}, which updates on the next render, this reflects a
|
|
10062
|
+
* selection made in the same tick, for example right after {@link select}.
|
|
10063
|
+
*/
|
|
10064
|
+
getSelectionState: EditorCore["getSelectionState"];
|
|
9970
10065
|
exec: EditorCore["exec"];
|
|
9971
10066
|
/** Whether `mark` is active at the current selection. */
|
|
9972
10067
|
isMarkActive: (mark: MarkName) => boolean;
|
|
9973
10068
|
/** Toggle a boolean mark (bold/italic/underline). */
|
|
9974
10069
|
toggleMark: (mark: MarkName) => void;
|
|
9975
|
-
/** Set or clear a color
|
|
9976
|
-
setMark: (key:
|
|
10070
|
+
/** Set or clear a value mark (color or font); omit `value` to clear. */
|
|
10071
|
+
setMark: (key: ValueMarkKey, value?: string) => void;
|
|
9977
10072
|
}
|
|
9978
10073
|
/**
|
|
9979
10074
|
* Options for {@link useEditor}. Combines the engine callbacks with the
|
|
9980
10075
|
* React-managed props the hook owns the lifecycle for.
|
|
9981
10076
|
*/
|
|
9982
|
-
interface UseEditorOptions extends Pick<EditorCoreOptions, "onChange" | "onSelectionChange" | "onMentionTrigger" | "onMentionInputRemoved" | "canStartMention" | "resolveMention" | "isReadOnly"> {
|
|
10077
|
+
interface UseEditorOptions extends Pick<EditorCoreOptions, "onChange" | "onDocChange" | "onPaste" | "onCopy" | "onSelectionChange" | "onMentionTrigger" | "onMentionInputRemoved" | "canStartMention" | "resolveMention" | "isReadOnly"> {
|
|
9983
10078
|
/** Controlled value (provide with `onChange`). */
|
|
9984
10079
|
value?: string;
|
|
9985
10080
|
/** Initial value for uncontrolled use (applied once on mount). */
|
|
9986
10081
|
defaultValue?: string;
|
|
10082
|
+
/**
|
|
10083
|
+
* Controlled document model (provide with `onDocChange`). Throws when
|
|
10084
|
+
* combined with `value`, `defaultValue` or `defaultDoc`.
|
|
10085
|
+
*/
|
|
10086
|
+
doc?: RichTextEditorDoc;
|
|
10087
|
+
/** Initial document model for uncontrolled use (applied once on mount). */
|
|
10088
|
+
defaultDoc?: RichTextEditorDoc;
|
|
10089
|
+
/**
|
|
10090
|
+
* Maximum document length, counted as `docLength` counts it (a paragraph
|
|
10091
|
+
* separator is one character). Typing, pasting, soft breaks and IME input
|
|
10092
|
+
* stop at the limit; replacing a selection frees its characters. Must be a
|
|
10093
|
+
* finite integer of at least 0; anything else throws.
|
|
10094
|
+
*/
|
|
10095
|
+
maxLength?: number;
|
|
10096
|
+
/**
|
|
10097
|
+
* The CSS properties the editor keeps when it parses `value`,
|
|
10098
|
+
* `defaultValue` and `setValue` HTML. Font marks and paragraph `textAlign`
|
|
10099
|
+
* in that HTML survive only when listed. Everything else is unaffected: a
|
|
10100
|
+
* `doc`/`defaultDoc`, marks set with `setMark` and text typed or edited
|
|
10101
|
+
* natively keep every style the document carries. Pasted and dropped HTML
|
|
10102
|
+
* always keeps only `color` and `backgroundColor`, since HTML from other
|
|
10103
|
+
* apps carries their fonts and sizes; use `onPaste` to bring in more.
|
|
10104
|
+
*
|
|
10105
|
+
* @default ["color", "backgroundColor"]
|
|
10106
|
+
*/
|
|
10107
|
+
htmlStyles?: readonly EditorStyle[];
|
|
9987
10108
|
/** When true, the editor is read-only and selection is cleared. */
|
|
9988
10109
|
isDisabled?: boolean;
|
|
9989
10110
|
/**
|
|
@@ -10000,6 +10121,13 @@ interface UseEditorOptions extends Pick<EditorCoreOptions, "onChange" | "onSelec
|
|
|
10000
10121
|
* @default true
|
|
10001
10122
|
*/
|
|
10002
10123
|
autoLink?: boolean;
|
|
10124
|
+
/**
|
|
10125
|
+
* Whether Enter splits the paragraph instead of inserting a soft break.
|
|
10126
|
+
* Shift+Enter always inserts a soft break.
|
|
10127
|
+
*
|
|
10128
|
+
* @default false
|
|
10129
|
+
*/
|
|
10130
|
+
enterInsertsParagraph?: boolean;
|
|
10003
10131
|
}
|
|
10004
10132
|
|
|
10005
10133
|
/**
|
|
@@ -10041,6 +10169,8 @@ interface EditableProps {
|
|
|
10041
10169
|
suppressContentEditableWarning: true;
|
|
10042
10170
|
role: "textbox";
|
|
10043
10171
|
"aria-multiline": true;
|
|
10172
|
+
/** Marks the editable root for styling and querying the rendered content. */
|
|
10173
|
+
"data-editor-root": "true";
|
|
10044
10174
|
onKeyDown?: KeyboardEventHandler;
|
|
10045
10175
|
onKeyUp?: KeyboardEventHandler;
|
|
10046
10176
|
}
|
|
@@ -10358,7 +10488,7 @@ interface ImageGalleryProps extends StylingProps, Omit<UNSAFE_ListBoxProps, "ite
|
|
|
10358
10488
|
/**
|
|
10359
10489
|
* The aspect ratio of the images.
|
|
10360
10490
|
*
|
|
10361
|
-
* @default
|
|
10491
|
+
* @default 3 / 4
|
|
10362
10492
|
*/
|
|
10363
10493
|
aspectRatio?: number;
|
|
10364
10494
|
/**
|
|
@@ -10395,11 +10525,12 @@ interface ImageGalleryProps extends StylingProps, Omit<UNSAFE_ListBoxProps, "ite
|
|
|
10395
10525
|
isSelected: boolean;
|
|
10396
10526
|
}) => Dimension);
|
|
10397
10527
|
/**
|
|
10398
|
-
* The title of the delete confirmation modal.
|
|
10528
|
+
* The title of the delete confirmation modal. A function receives the keys
|
|
10529
|
+
* about to be deleted, or `"all"` when the delete comes from Select All.
|
|
10399
10530
|
*
|
|
10400
10531
|
* @default "Are you sure you want to delete this item?"
|
|
10401
10532
|
*/
|
|
10402
|
-
deleteConfirmationTitle?: string | ((
|
|
10533
|
+
deleteConfirmationTitle?: string | ((keys: Selection$1) => string);
|
|
10403
10534
|
/**
|
|
10404
10535
|
* Overrides the label of the button that permanently deletes the selected
|
|
10405
10536
|
* image(s), and the accessible label of each image's individual delete
|
|
@@ -10664,9 +10795,14 @@ type GridListProps = Omit<StylingProps & ListProps<ListOption> & AriaGridListOpt
|
|
|
10664
10795
|
};
|
|
10665
10796
|
}, ref: React__default.Ref<HTMLLIElement>) => React__default.JSX.Element;
|
|
10666
10797
|
/**
|
|
10667
|
-
* Enables editing mode
|
|
10668
|
-
*
|
|
10669
|
-
*
|
|
10798
|
+
* Enables editing mode for an inline input inside a row. While editing,
|
|
10799
|
+
* the grid's own keyboard handling skips every key except Enter and
|
|
10800
|
+
* Escape, so type-ahead and arrow, Home, End, PageUp and PageDown
|
|
10801
|
+
* navigation do not move focus out of the input. Keys still reach the
|
|
10802
|
+
* input's own handlers. They also reach `onKeyDown` handlers on
|
|
10803
|
+
* ancestors and document-level listeners, except an Enter or Escape the
|
|
10804
|
+
* grid acts on, such as Enter selecting the row or Escape clearing the
|
|
10805
|
+
* selection.
|
|
10670
10806
|
*
|
|
10671
10807
|
* @default false
|
|
10672
10808
|
*/
|
|
@@ -10792,7 +10928,7 @@ interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "op
|
|
|
10792
10928
|
|
|
10793
10929
|
declare const ColorSwatchPicker: React__default.ForwardRefExoticComponent<ColorSwatchPickerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
10794
10930
|
|
|
10795
|
-
declare const TimeField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<TimeFieldStateOptions<TimeValue>, "locale"> & AriaTimeFieldProps<TimeValue>, "
|
|
10931
|
+
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>>;
|
|
10796
10932
|
|
|
10797
10933
|
type TimeFieldProps = StylingProps & Omit<Omit<TimeFieldStateOptions, "locale"> & AriaTimeFieldProps<TimeValue>, "validationState" | "isInvalid" | "isRequired" | "validate"> & Pick<SharedInputProps, "variant" | "labelPosition" | "validationState" | "label"> & InputMessage;
|
|
10798
10934
|
|
|
@@ -11137,7 +11273,7 @@ type DateFieldProps = StylingProps & Omit<Omit<DateFieldStateOptions, "locale">
|
|
|
11137
11273
|
openCalendarLabel?: string;
|
|
11138
11274
|
};
|
|
11139
11275
|
|
|
11140
|
-
declare const DateField: React__default.ForwardRefExoticComponent<StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & AriaDateFieldProps<DateValue>, "
|
|
11276
|
+
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 & {
|
|
11141
11277
|
pickerType?: DateFieldPickerType;
|
|
11142
11278
|
openCalendarLabel?: string;
|
|
11143
11279
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -12459,5 +12595,5 @@ declare namespace reactStately {
|
|
|
12459
12595
|
export type { reactStately_Color as Color, reactStately_ListData as ListData, reactStately_TreeData as TreeData };
|
|
12460
12596
|
}
|
|
12461
12597
|
|
|
12462
|
-
export { Accordion, AccordionItem, ActionButton, ActionGroup, ActionGroupItem, ActionIconButton, Actionable, AlertDialog, AudioPlayer, Autocomplete, Avatar, Box, Breadcrumb, Breadcrumbs, ButtonSelect, Calendar, Cell, Checkbox, Code, ColorInput, ColorSwatch, ColorSwatchPicker, Column, ComboBox, DateField, DateFormat, DefaultListOption, DeviceProvider, DeviceProviderContext, Dialog, DialogTitle, Disclosure, DomNodeRenderer, Drawer, EMPTY_SELECTION_STATE, Editor, EditorCore, EditorProvider, FileInput, FileList$1 as FileList, FileUploader, FocusScope, Focusable, FrameProvider, FreehandCanvas, GlobalToastRegion, GridLayout, GridList, Group, I18nProvider, Icon, IconColorInput, IconColorInputButton, IconSelect, IconSlider, ImageDropZone, ImageGallery, InlineAlert, Kbd, Link, ListBox, ListLayout, LocaleAwareGridLayout, Markdown, Menu, MessageFormat, Modal, ModalClose, ModalContent, ModalTrigger, NumberFormat, NumberInput, Pagination, Panel, PanelGroup, PanelResizeHandle, PointPicker, PointPickerContent, PointPickerDisplay, Popover, PopoverContent, PopoverTrigger, Portal, PortalContainerProvider, Pressable, Preview, ProgressBar, ProgressSpinner, REACT_ARIA_INCOMPATIBLE_KEYS, RadioGroup, RangeCalendar, Reaction, Row, ScrollControlButton, SearchInput, Select, Separator, Size, Skeleton, Slider, StatusCard, Stepper, Switch, TabItem, Table, TableBody, TableHeader, TableLayout, Tabs, Tag, TagGroup, TaggedPagination, Text, TextInput, ThemeProvider, TimeField, ToastQueue, ToggleButton, ToggleIconButton, Toolbar, Tooltip, TreeView, UNSAFE_ListBox, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS, Virtualizer, VisuallyHidden, WaterfallLayout, announce, areColorsEqual, booleanOrObjectToConfig, calculateFontSizeToFitWidth, capitalize, clamp, classNames, cleanKeyFromGlobImport, clearAnnouncer, createMessageFormatter, defineMessages, destroyAnnouncer, devWarnOnce, directionVar, disableAnimations, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText, getSvgPathFromStroke, getTextDimensions, handleEditorShortcut, iconMap, invariant, isFocusableElement, isInIframe, isInShadowDOM, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, legacyMessageIdMap, lightenColor, mergeProps, mergeRefs, messageIds, onDropOrPaste, parseColor, safeSpreadProps, useCollator, useDateFormatter, useDevice, useDragAndDrop, useEditable, useEditor, useEditorContext, useFilter, useFocusRing, useFocusVisible, useFrameDimensions, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useListData, useLiveInteractionModality, useLocalStorage, useLocale, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, usePreventFocus, useResizeObserver, useTableDragAndDrop, useTextSelection, useUndoRedo, useUserPreferences };
|
|
12463
|
-
export type { AccordionItemProps, AccordionProps, ActionButtonProps, ActionGroupProps, ActionIconButtonProps, ActionableProps, ActiveMarks, AlertDialogProps, AudioPlayerProps, AutocompleteProps, AvatarProps, BlockProps, BoundaryAxis, BoxProps, BreadcrumbProps, BreadcrumbsProps, ButtonSelectProps, CalendarHeaderVariant, CalendarProps, CalendarSize, CellProps, CheckboxProps, CodeProps, ColorInputProps, ColorPreset, ColorSwatchPickerProps, ColorSwatchProps, ColumnProps, ComboBoxProps, CommandArgs, CommandName, CreateMessageFormatterOptions, DateFieldPickerType, DateFieldProps, DateFormatProps, Device, DeviceProviderProps, DialogProps, DialogTitleProps, DisclosureProps, DomNodeRendererProps, DrawerProps, EditableProps, EditorCoreOptions, EditorHandle, EditorProps, EditorProviderProps, EditorState, FileInputProps, FileListItem, FileListProps, FileUploaderProps, FocusableProps, FrameProviderProps, FreehandCanvasProps, GridListProps, GroupProps, HorizontalBoundaryBehavior, I18nProviderProps, I18nResult, IconColorInputProps, IconComponentProps$1 as IconComponentProps, IconProps, IconSelectProps, IconSliderProps, ImageDropZoneProps, ImageGalleryProps, ImperativePanelGroupHandle, ImperativePanelHandle, InlineAlertProps, IntersectionObserverOptions, KbdProps, Key, LinkProps, ListBoxProps, ListHandle$1 as ListHandle, ListOption, MarkName, MarkdownProps, MenuItem, MenuProps, MessageDescriptor, MessageFormatProps, MessageFormatter, MessageId, MessageIssue, MessageIssueCode, ModalContentProps, ModalProps, ModelPoint, ModelRange, NumberFormatProps, NumberInputProps, PaginationProps, PanelGroupProps, PanelProps, PanelResizeHandleProps, PointPickerContentProps, PointPickerDisplayProps, PointPickerProps, PopoverContentHandle, PopoverContentProps, PopoverProps, PopoverTriggerProps, PortalProps, PressEvent, PreviewProps, ProgressBarProps, ProgressSpinnerProps, RadioGroupProps, RangeCalendarProps, ReactAriaIncompatibleKey, ReactionProps, Rect, ResizeObserverOptions, RichTextEditorDoc, RichTextEditorInline, RichTextEditorLink, RichTextEditorMention, RichTextEditorMentionInput, RichTextEditorParagraph, RichTextEditorText, RowProps, SVGRProps, SafeDOMAttributes, ScrollControlButtonProps, SearchInputProps, SelectProps, SelectionState, SeparatorProps, SetValue, SkeletonProps, SliderProps, StatusCardProps, StepperItem, StepperProps, StylingProps, SwitchProps, TabItemProps, TableBodyProps, TableHeaderProps, TableProps, TabsProps, TagGroupProps, TagProps, TagVariant, TaggedPaginationProps, TextInputProps, TextProps, TextSelectionProps, ThemeProviderProps, TimeFieldProps, ToastProps, ToggleButtonProps, ToggleIconButtonProps, ToolbarProps, TooltipProps, TreeItemRenderState, TreeListItem, TreeViewProps, UNSAFE_ListBoxProps, UseEditableOptions, UseEditorOptions, UseTableDragAndDropOptions, VirtualizerProps };
|
|
12598
|
+
export { Accordion, AccordionItem, ActionButton, ActionGroup, ActionGroupItem, ActionIconButton, Actionable, AlertDialog, AudioPlayer, Autocomplete, Avatar, Box, Breadcrumb, Breadcrumbs, ButtonSelect, Calendar, Cell, Checkbox, Code, ColorInput, ColorSwatch, ColorSwatchPicker, Column, ComboBox, DateField, DateFormat, DefaultListOption, DeviceProvider, DeviceProviderContext, Dialog, DialogTitle, Disclosure, DomNodeRenderer, Drawer, EMPTY_SELECTION_STATE, Editor, EditorCore, EditorProvider, FileInput, FileList$1 as FileList, FileUploader, FocusScope, Focusable, FrameProvider, FreehandCanvas, GlobalToastRegion, GridLayout, GridList, Group, I18nProvider, Icon, IconColorInput, IconColorInputButton, IconSelect, IconSlider, ImageDropZone, ImageGallery, InlineAlert, Kbd, Link, ListBox, ListLayout, LocaleAwareGridLayout, Markdown, Menu, MessageFormat, Modal, ModalClose, ModalContent, ModalTrigger, NumberFormat, NumberInput, Pagination, Panel, PanelGroup, PanelResizeHandle, PointPicker, PointPickerContent, PointPickerDisplay, Popover, PopoverContent, PopoverTrigger, Portal, PortalContainerProvider, Pressable, Preview, ProgressBar, ProgressSpinner, REACT_ARIA_INCOMPATIBLE_KEYS, RadioGroup, RangeCalendar, Reaction, Row, ScrollControlButton, SearchInput, Select, Separator, Size, Skeleton, Slider, StatusCard, Stepper, Switch, TabItem, Table, TableBody, TableHeader, TableLayout, Tabs, Tag, TagGroup, TaggedPagination, Text, TextInput, ThemeProvider, TimeField, ToastQueue, ToggleButton, ToggleIconButton, Toolbar, Tooltip, TreeView, UNSAFE_ListBox, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS, Virtualizer, VisuallyHidden, WaterfallLayout, announce, areColorsEqual, booleanOrObjectToConfig, calculateFontSizeToFitWidth, capitalize, clamp, classNames, cleanKeyFromGlobImport, clearAnnouncer, comparePoints, createMessageFormatter, defineMessages, destroyAnnouncer, devWarnOnce, directionVar, disableAnimations, docEnd, docStart, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getPlainText as getDocPlainText, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText$1 as getPlainText, getSvgPathFromStroke, getTextDimensions, handleEditorShortcut, iconMap, invariant, isFocusableElement, isInIframe, isInShadowDOM, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, legacyMessageIdMap, lightenColor, mergeProps, mergeRefs, messageIds, onDropOrPaste, parseColor, safeSpreadProps, useCollator, useDateFormatter, useDevice, useDragAndDrop, useEditable, useEditor, useEditorContext, useFilter, useFocusRing, useFocusVisible, useFrameDimensions, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useListData, useLiveInteractionModality, useLocalStorage, useLocale, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, usePreventFocus, useResizeObserver, useTableDragAndDrop, useTextSelection, useUndoRedo, useUserPreferences };
|
|
12599
|
+
export type { AccordionItemProps, AccordionProps, ActionButtonProps, ActionGroupProps, ActionIconButtonProps, ActionableProps, ActiveMarks, AlertDialogProps, AudioPlayerProps, AutocompleteProps, AvatarProps, BlockProps, BoundaryAxis, BoxProps, BreadcrumbProps, BreadcrumbsProps, ButtonSelectProps, CalendarHeaderVariant, CalendarProps, CalendarSize, CellProps, CheckboxProps, CodeProps, ColorInputProps, ColorPreset, ColorSwatchPickerProps, ColorSwatchProps, ColumnProps, ComboBoxProps, CommandArgs, CommandName, CreateMessageFormatterOptions, DateFieldPickerType, DateFieldProps, DateFormatProps, Device, DeviceProviderProps, DialogProps, DialogTitleProps, DisclosureProps, DomNodeRendererProps, DrawerProps, EditableProps, EditorCoreOptions, EditorHandle, EditorProps, EditorProviderProps, EditorState, EditorStyle, FileInputProps, FileListItem, FileListProps, FileUploaderProps, FocusableProps, FrameProviderProps, FreehandCanvasProps, GridListProps, GroupProps, HorizontalBoundaryBehavior, I18nProviderProps, I18nResult, IconColorInputProps, IconComponentProps$1 as IconComponentProps, IconProps, IconSelectProps, IconSliderProps, ImageDropZoneProps, ImageGalleryProps, ImperativePanelGroupHandle, ImperativePanelHandle, InlineAlertProps, IntersectionObserverOptions, KbdProps, Key, LinkProps, ListBoxProps, ListHandle$1 as ListHandle, ListOption, MarkName, MarkdownProps, MenuItem, MenuProps, MessageDescriptor, MessageFormatProps, MessageFormatter, MessageId, MessageIssue, MessageIssueCode, ModalContentProps, ModalProps, ModelPoint, ModelRange, NumberFormatProps, NumberInputProps, PaginationProps, PanelGroupProps, PanelProps, PanelResizeHandleProps, PointPickerContentProps, PointPickerDisplayProps, PointPickerProps, PopoverContentHandle, PopoverContentProps, PopoverProps, PopoverTriggerProps, PortalProps, PressEvent, PreviewProps, ProgressBarProps, ProgressSpinnerProps, RadioGroupProps, RangeCalendarProps, ReactAriaIncompatibleKey, ReactionProps, Rect, ResizeObserverOptions, RichTextEditorDoc, RichTextEditorInline, RichTextEditorLink, RichTextEditorMention, RichTextEditorMentionInput, RichTextEditorParagraph, RichTextEditorText, RowProps, SVGRProps, SafeDOMAttributes, ScrollControlButtonProps, SearchInputProps, SelectOptions, SelectProps, SelectionState, SeparatorProps, SetValue, SkeletonProps, SliderProps, StatusCardProps, StepperItem, StepperProps, StylingProps, SwitchProps, TabItemProps, TableBodyProps, TableHeaderProps, TableProps, TabsProps, TagGroupProps, TagProps, TagVariant, TaggedPaginationProps, TextInputProps, TextProps, TextSelectionProps, ThemeProviderProps, TimeFieldProps, ToastProps, ToggleButtonProps, ToggleIconButtonProps, ToolbarProps, TooltipProps, TreeItemRenderState, TreeListItem, TreeViewProps, UNSAFE_ListBoxProps, UseEditableOptions, UseEditorOptions, UseTableDragAndDropOptions, ValueMarkKey, VirtualizerProps };
|