From 620a7b50d04a45f1b5069e6d049d39198d12209a Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Thu, 4 Apr 2024 23:26:30 -0700 Subject: [PATCH] feat: export 'IS_' and 'CAN_*' environment constants from @lexical/utils (#5831) --- packages/lexical-utils/src/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/lexical-utils/src/index.ts b/packages/lexical-utils/src/index.ts index 0ae4ba83ff2..d3bc895718f 100644 --- a/packages/lexical-utils/src/index.ts +++ b/packages/lexical-utils/src/index.ts @@ -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;