[REF] owl: move some exported values around

This is a breaking change. Code using Observer, EventBus, Store or
ConnectedComponent need to update the way they import theses classes.

- Observer is now in owl.misc (so you can import it like this:
    const Observer = owl.misc.Observer;)
- EventBus is also now in owl.misc
- Store and ConnectedComponent are now together in store
This commit is contained in:
Géry Debongnie
2019-07-14 09:02:02 +02:00
parent 4a90ec7ff0
commit 15a3f59744
3 changed files with 11 additions and 6 deletions
+6 -3
View File
@@ -5,9 +5,10 @@
* Note that dynamic values, such as a date or a commit hash are added by rollup
*/
export { Component } from "./component";
export { EventBus } from "./event_bus";
export { Observer } from "./observer";
import { EventBus } from "./event_bus";
import { Observer } from "./observer";
export const misc = {EventBus, Observer};
// we need to import manually the extra directives so they can register
// themselves in QWeb, otherwise these files will not even be loaded.
import "./qweb_directives";
@@ -15,7 +16,9 @@ import "./qweb_extensions";
import { QWeb } from "./qweb_core";
export { QWeb };
export { Store, ConnectedComponent } from "./store";
import { Store, ConnectedComponent } from "./store";
export const store = {Store, ConnectedComponent};
import * as _utils from "./utils";
export const __info__ = {};