Skip to content

Commit

Permalink
chore(core): export missing modules in compat API
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Jul 11, 2024
1 parent 5b95b06 commit 68897d0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions framework/core/js/src/admin/compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import ExtensionsWidget from './components/ExtensionsWidget';
import HeaderSecondary from './components/HeaderSecondary';
import SettingsModal from './components/SettingsModal';
import DashboardWidget from './components/DashboardWidget';
import DebugWarningWidget from './components/DebugWarningWidget';
import ExtensionPage from './components/ExtensionPage';
import ExtensionLinkButton from './components/ExtensionLinkButton';
import PermissionGrid from './components/PermissionGrid';
Expand All @@ -28,6 +29,7 @@ import UserListPage from './components/UserListPage';
import EditCustomHeaderModal from './components/EditCustomHeaderModal';
import PermissionsPage from './components/PermissionsPage';
import PermissionDropdown from './components/PermissionDropdown';
import ReadmeModal from './components/ReadmeModal';
import AdminNav from './components/AdminNav';
import AdminHeader from './components/AdminHeader';
import EditCustomCssModal from './components/EditCustomCssModal';
Expand All @@ -36,6 +38,8 @@ import routes from './routes';
import AdminApplication from './AdminApplication';
import generateElementId from './utils/generateElementId';
import CreateUserModal from './components/CreateUserModal';
import ExtensionReadme from './models/ExtensionReadme';
import ExtensionPageResolver from './resolvers/ExtensionPageResolver';

export default Object.assign(compat, {
'utils/saveSettings': saveSettings,
Expand All @@ -54,6 +58,7 @@ export default Object.assign(compat, {
'components/HeaderSecondary': HeaderSecondary,
'components/SettingsModal': SettingsModal,
'components/DashboardWidget': DashboardWidget,
'components/DebugWarningWidget': DebugWarningWidget,
'components/ExtensionPage': ExtensionPage,
'components/ExtensionLinkButton': ExtensionLinkButton,
'components/PermissionGrid': PermissionGrid,
Expand All @@ -67,11 +72,14 @@ export default Object.assign(compat, {
'components/EditCustomHeaderModal': EditCustomHeaderModal,
'components/PermissionsPage': PermissionsPage,
'components/PermissionDropdown': PermissionDropdown,
'components/ReadmeModal': ReadmeModal,
'components/AdminNav': AdminNav,
'components/AdminHeader': AdminHeader,
'components/EditCustomCssModal': EditCustomCssModal,
'components/EditGroupModal': EditGroupModal,
'components/CreateUserModal': CreateUserModal,
'models/ExtensionReadme': ExtensionReadme,
'resolvers/ExtensionPageResolver': ExtensionPageResolver,
routes: routes,
AdminApplication: AdminApplication,
});
12 changes: 12 additions & 0 deletions framework/core/js/src/common/compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import extenders from './extenders';
import Session from './Session';
import Store from './Store';
import BasicEditorDriver from './utils/BasicEditorDriver';
import bidi from './utils/bidi';
import evented from './utils/evented';
import EventEmitter from './utils/EventEmitter';
import KeyboardNavigatable from './utils/KeyboardNavigatable';
Expand All @@ -14,6 +15,7 @@ import computed from './utils/computed';
import insertText from './utils/insertText';
import styleSelectedText from './utils/styleSelectedText';
import Drawer from './utils/Drawer';
import * as EditorDriverInterface from './utils/EditorDriverInterface';
import anchorScroll from './utils/anchorScroll';
import RequestError from './utils/RequestError';
import abbreviateNumber from './utils/abbreviateNumber';
Expand All @@ -36,6 +38,7 @@ import mapRoutes from './utils/mapRoutes';
import withAttr from './utils/withAttr';
import * as FocusTrap from './utils/focusTrap';
import isDark from './utils/isDark';
import AccessToken from './models/AccessToken';
import Notification from './models/Notification';
import User from './models/User';
import Post from './models/Post';
Expand All @@ -62,6 +65,7 @@ import Link from './components/Link';
import LinkButton from './components/LinkButton';
import Checkbox from './components/Checkbox';
import ColorPreviewInput from './components/ColorPreviewInput';
import ConfirmDocumentUnload from './components/ConfirmDocumentUnload';
import SelectDropdown from './components/SelectDropdown';
import ModalManager from './components/ModalManager';
import Button from './components/Button';
Expand All @@ -75,6 +79,8 @@ import Model from './Model';
import Application from './Application';
import fullTime from './helpers/fullTime';
import avatar from './helpers/avatar';
import fireApplicationError from './helpers/fireApplicationError';
import * as fireDebugWarning from './helpers/fireDebugWarning';
import icon from './helpers/icon';
import humanTimeHelper from './helpers/humanTime';
import punctuateSeries from './helpers/punctuateSeries';
Expand All @@ -98,6 +104,7 @@ export default {
Session: Session,
Store: Store,
'utils/BasicEditorDriver': BasicEditorDriver,
'utils/bidi': bidi,
'utils/evented': evented,
'utils/EventEmitter': EventEmitter,
'utils/KeyboardNavigatable': KeyboardNavigatable,
Expand All @@ -109,6 +116,7 @@ export default {
'utils/insertText': insertText,
'utils/styleSelectedText': styleSelectedText,
'utils/Drawer': Drawer,
'utils/EditorDriverInterface': EditorDriverInterface,
'utils/anchorScroll': anchorScroll,
'utils/RequestError': RequestError,
'utils/abbreviateNumber': abbreviateNumber,
Expand All @@ -132,6 +140,7 @@ export default {
'utils/isObject': isObject,
'utils/focusTrap': FocusTrap,
'utils/isDark': isDark,
'models/AccessToken': AccessToken,
'models/Notification': Notification,
'models/User': User,
'models/Post': Post,
Expand Down Expand Up @@ -159,6 +168,7 @@ export default {
'components/LinkButton': LinkButton,
'components/Checkbox': Checkbox,
'components/ColorPreviewInput': ColorPreviewInput,
'components/ConfirmDocumentUnload': ConfirmDocumentUnload,
'components/SelectDropdown': SelectDropdown,
'components/ModalManager': ModalManager,
'components/Button': Button,
Expand All @@ -173,6 +183,8 @@ export default {
Application: Application,
'helpers/fullTime': fullTime,
'helpers/avatar': avatar,
'helpers/fireApplicationError': fireApplicationError,
'helpers/fireDebugWarning': fireDebugWarning,
'helpers/icon': icon,
'helpers/humanTime': humanTimeHelper,
'helpers/punctuateSeries': punctuateSeries,
Expand Down
2 changes: 2 additions & 0 deletions framework/core/js/src/forum/compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import AffixedSidebar from './components/AffixedSidebar';
import DiscussionPage from './components/DiscussionPage';
import DiscussionListPane from './components/DiscussionListPane';
import LogInModal from './components/LogInModal';
import NewAccessTokenModal from './components/NewAccessTokenModal';
import ComposerBody from './components/ComposerBody';
import ForgotPasswordModal from './components/ForgotPasswordModal';
import Notification from './components/Notification';
Expand Down Expand Up @@ -100,6 +101,7 @@ export default Object.assign(compat, {
'components/DiscussionPage': DiscussionPage,
'components/DiscussionListPane': DiscussionListPane,
'components/LogInModal': LogInModal,
'components/NewAccessTokenModal': NewAccessTokenModal,
'components/ComposerBody': ComposerBody,
'components/ForgotPasswordModal': ForgotPasswordModal,
'components/Notification': Notification,
Expand Down

0 comments on commit 68897d0

Please sign in to comment.