While developing an extension, I noticed that some of the components from flarum/core are not being exported. This poses challenges for extensions that wish to extend or utilize these components.
The following components are missing from the compat exports:
LabelValue
AccessTokensList
Steps to Reproduce
Attempt to import LabelValue or AccessTokensList in an extension, ie import AccessTokensList from 'flarum/forum/components/AccessTokensList';
Observe that the import is undefined due to missing exports.
Expected Behavior
Importing these components should function correctly.
Screenshots
No response
Environment
Flarum version: 1.8.1
Website URL:local
Webserver: [e.g. apache, nginx]
Hosting environment: [e.g. shared, vps] local
PHP version: 8.1
Browser: all
Output of php flarum info
Output of "php flarum info", run this in terminal in your Flarum directory.
Possible Solution
Add these components to their respective compat.ts
Current Behavior
While developing an extension, I noticed that some of the components from
flarum/core
are not being exported. This poses challenges for extensions that wish to extend or utilize these components.The following components are missing from the compat exports:
LabelValue
AccessTokensList
Steps to Reproduce
Attempt to import
LabelValue
orAccessTokensList
in an extension, ieimport AccessTokensList from 'flarum/forum/components/AccessTokensList';
Observe that the import is undefined due to missing exports.
Expected Behavior
Importing these components should function correctly.
Screenshots
No response
Environment
Output of
php flarum info
Possible Solution
Add these components to their respective
compat.ts
Additional Context
No response