Closed kagol closed 1 month ago
The changes in this pull request primarily involve modifications to import statements, export structures, and the organization of constants within the fluent-editor
package. The LANG_CONF
variable is now imported from editor.config
, centralizing language configuration management. The index.ts
file has been updated to simplify the export structure by removing commented-out lines, thus enhancing code modularity and clarity while maintaining existing functionality in the methods.
File Path | Change Summary |
---|---|
packages/fluent-editor/src/config/index.ts | - Simplified import paths for isNullOrUndefined and icons.config . |
- Updated LANG_CONF to import from editor.config , removing local definition. |
|
- Streamlined ICONS_CONFIG import path. |
|
- TABLE_RIGHT_MENU_CONFIG now references centralized LANG_CONF . |
|
- inputFile and getListValue functions remain unchanged. |
|
packages/fluent-editor/src/index.ts | - Removed commented-out lines for merging configurations. |
- Retained export from ./config and moved it above the default export of FluentEditor . |
🐰 In the code where rabbits play,
Imports streamlined, bright as day.
Language now in one neat place,
Constants dance with joyful grace.
With every change, our code's a treat,
Hopping high, it can't be beat! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
Bug Fixes
Documentation