Skip to content

Commit

Permalink
feat: export 'IS_' and 'CAN_*' environment constants from @lexical/ut…
Browse files Browse the repository at this point in the history
…ils (#5831)
  • Loading branch information
etrepum authored Apr 5, 2024
1 parent 6558e22 commit 620a7b5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/lexical-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ export {default as markSelection} from './markSelection';
export {default as mergeRegister} from './mergeRegister';
export {default as positionNodeOnRange} from './positionNodeOnRange';
export {$splitNode, isHTMLAnchorElement, isHTMLElement} from 'lexical';
export {CAN_USE_DOM} from 'shared/canUseDOM';
export {
CAN_USE_BEFORE_INPUT,
IS_ANDROID,
IS_ANDROID_CHROME,
IS_APPLE,
IS_APPLE_WEBKIT,
IS_CHROME,
IS_FIREFOX,
IS_IOS,
IS_SAFARI,
} from 'shared/environment';

export type DFSNode = Readonly<{
depth: number;
Expand Down

0 comments on commit 620a7b5

Please sign in to comment.