2016-03-28 16:24:27 +00:00
|
|
|
/*
|
2016-04-07 16:49:39 +00:00
|
|
|
* skinned-sdk.js
|
2016-03-28 16:24:27 +00:00
|
|
|
*
|
2016-04-07 16:49:39 +00:00
|
|
|
* Skins the react-sdk with a few stub components which we expect the
|
|
|
|
* application to provide
|
2016-03-28 16:24:27 +00:00
|
|
|
*/
|
2016-04-07 16:49:39 +00:00
|
|
|
|
2016-04-21 07:09:40 +00:00
|
|
|
/* this is a convenient place to ensure we load the compatibility libraries we expect our
|
|
|
|
* app to provide
|
|
|
|
*/
|
|
|
|
|
2020-01-10 00:23:46 +00:00
|
|
|
import * as sdk from "../src/index";
|
|
|
|
import stubComponent from "./components/stub-component";
|
2016-04-21 07:09:40 +00:00
|
|
|
|
2020-01-10 00:23:46 +00:00
|
|
|
const components = {};
|
2016-03-30 23:48:46 +00:00
|
|
|
components['structures.LeftPanel'] = stubComponent();
|
|
|
|
components['structures.RightPanel'] = stubComponent();
|
|
|
|
components['structures.RoomDirectory'] = stubComponent();
|
|
|
|
components['views.globals.GuestWarningBar'] = stubComponent();
|
|
|
|
components['views.globals.NewVersionBar'] = stubComponent();
|
|
|
|
components['views.elements.Spinner'] = stubComponent({displayName: 'Spinner'});
|
|
|
|
components['views.messages.DateSeparator'] = stubComponent({displayName: 'DateSeparator'});
|
|
|
|
components['views.messages.MessageTimestamp'] = stubComponent({displayName: 'MessageTimestamp'});
|
|
|
|
components['views.messages.SenderProfile'] = stubComponent({displayName: 'SenderProfile'});
|
2016-06-17 14:46:31 +00:00
|
|
|
components['views.rooms.SearchBar'] = stubComponent();
|
2016-03-28 16:24:27 +00:00
|
|
|
|
2020-01-10 00:23:46 +00:00
|
|
|
sdk.loadSkin({components});
|
2016-04-07 16:49:39 +00:00
|
|
|
|
2020-01-10 00:23:46 +00:00
|
|
|
export default sdk;
|