flarum / framework

Simple forum software for building great communities.
http://flarum.org/
6.27k stars 826 forks source link

Missing Component Exports #3887

Closed imorland closed 11 months ago

imorland commented 11 months ago

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:

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

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

Additional Context

No response