-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: IS_IOS, IS_SAFARI, IS_APPLE_WEBKIT, CAN_USE_BEFORE_INPUT not found in lexical import errors #5827
Comments
would you try with 0.14.3? it fixes some imports errors 😋 |
@2wheeh Yes, we are still observing these import errors on 0.14.3 |
These constants weren't exported in 0.13.1 either… if it worked for you maybe your bundler was doing something weird? |
These were never exported, they've always been in the shared folder for the Playground, which was never packaged. Copy-pasting is the current method. I do agree it makes sense to be part of the lexical-utils package. |
I would also like to see these be exported, I copied them into a project I worked on because I basically had a hybrid of registerPlainText and registerRichText and they both depend on these constants. For what it's worth, here are the private imports used by those implementations:
import caretFromPoint from 'shared/caretFromPoint';
import {
CAN_USE_BEFORE_INPUT,
IS_APPLE_WEBKIT,
IS_IOS,
IS_SAFARI,
} from 'shared/environment';
import {
CAN_USE_BEFORE_INPUT,
IS_APPLE_WEBKIT,
IS_IOS,
IS_SAFARI,
} from 'shared/environment'; |
Feel free to raise a PR, happy to move it forward |
Lexical version: 0.14.2
Steps To Reproduce
The current behavior
The expected behavior
The text was updated successfully, but these errors were encountered: