2019-05-08 11:23:48 +02:00
|
|
|
/**
|
|
|
|
|
* This file is the main file packaged by rollup (see rollup.config.js). From
|
|
|
|
|
* this file, we export all public owl elements.
|
|
|
|
|
*
|
|
|
|
|
* Note that dynamic values, such as a date or a commit hash are added by rollup
|
|
|
|
|
*/
|
2019-07-14 22:18:00 +02:00
|
|
|
import { EventBus } from "./core/event_bus";
|
|
|
|
|
import { Observer } from "./core/observer";
|
|
|
|
|
import { QWeb } from "./qweb/index";
|
2019-10-14 13:10:33 +02:00
|
|
|
import { config } from "./config";
|
2019-10-11 14:52:09 +02:00
|
|
|
import * as _store from "./store";
|
2019-07-14 22:18:00 +02:00
|
|
|
import * as _utils from "./utils";
|
2019-09-12 09:45:32 +02:00
|
|
|
import * as _tags from "./tags";
|
2019-10-25 16:03:26 +02:00
|
|
|
import { AsyncRoot } from "./misc/async_root";
|
2019-11-15 13:24:07 +01:00
|
|
|
import { Portal } from "./misc/portal";
|
2019-09-24 14:06:53 +02:00
|
|
|
import * as _hooks from "./hooks";
|
2019-10-11 14:52:09 +02:00
|
|
|
import * as _context from "./context";
|
|
|
|
|
import { Link } from "./router/link";
|
|
|
|
|
import { RouteComponent } from "./router/route_component";
|
|
|
|
|
import { Router } from "./router/router";
|
2019-05-06 12:34:36 +02:00
|
|
|
|
2019-07-14 22:18:00 +02:00
|
|
|
export { Component } from "./component/component";
|
2019-05-21 14:11:40 +02:00
|
|
|
export { QWeb };
|
2019-10-14 13:10:33 +02:00
|
|
|
export { config };
|
2019-09-24 14:06:53 +02:00
|
|
|
|
2019-10-08 09:00:06 +02:00
|
|
|
export const Context = _context.Context;
|
2019-09-24 14:06:53 +02:00
|
|
|
export const useState = _hooks.useState;
|
2019-07-14 22:18:00 +02:00
|
|
|
export const core = { EventBus, Observer };
|
2019-09-11 13:34:29 +02:00
|
|
|
export const router = { Router, RouteComponent, Link };
|
2019-10-08 09:14:41 +02:00
|
|
|
export const Store = _store.Store;
|
2019-07-14 22:18:00 +02:00
|
|
|
export const utils = _utils;
|
2019-09-12 09:45:32 +02:00
|
|
|
export const tags = _tags;
|
2019-11-15 13:24:07 +01:00
|
|
|
export const misc = { AsyncRoot, Portal };
|
2019-10-08 09:14:41 +02:00
|
|
|
export const hooks = Object.assign({}, _hooks, {
|
|
|
|
|
useContext: _context.useContext,
|
|
|
|
|
useDispatch: _store.useDispatch,
|
|
|
|
|
useGetters: _store.useGetters,
|
|
|
|
|
useStore: _store.useStore
|
|
|
|
|
});
|
2019-05-21 14:11:40 +02:00
|
|
|
export const __info__ = {};
|