flarum / framework

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

Missing Component Exports #3887

Closed imorland closed 1 year ago

imorland commented 1 year 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