mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
62 lines
1.3 KiB
TypeScript
62 lines
1.3 KiB
TypeScript
import { UTILS } from "./app/template_helpers";
|
|
import {
|
|
config,
|
|
createBlock,
|
|
html,
|
|
list,
|
|
mount as blockMount,
|
|
multi,
|
|
patch,
|
|
remove,
|
|
text,
|
|
toggler,
|
|
comment,
|
|
} from "./blockdom";
|
|
import { mainEventHandler } from "./component/handler";
|
|
import { Portal } from "./portal";
|
|
export type { Reactive } from "./reactivity";
|
|
|
|
config.shouldNormalizeDom = false;
|
|
config.mainEventHandler = mainEventHandler;
|
|
(UTILS as any).Portal = Portal;
|
|
|
|
export const blockDom = {
|
|
config,
|
|
// bdom entry points
|
|
mount: blockMount,
|
|
patch,
|
|
remove,
|
|
// bdom block types
|
|
list,
|
|
multi,
|
|
text,
|
|
toggler,
|
|
createBlock,
|
|
html,
|
|
comment,
|
|
};
|
|
|
|
export { App, mount } from "./app/app";
|
|
export { Component } from "./component/component";
|
|
export { useComponent } from "./component/component_node";
|
|
export { status } from "./component/status";
|
|
export { Memo } from "./memo";
|
|
export { xml } from "./app/template_set";
|
|
export { useState, reactive, markRaw, toRaw } from "./reactivity";
|
|
export { useEffect, useEnv, useExternalListener, useRef, useChildSubEnv, useSubEnv } from "./hooks";
|
|
export { EventBus, whenReady, loadFile, markup } from "./utils";
|
|
export {
|
|
onWillStart,
|
|
onMounted,
|
|
onWillUnmount,
|
|
onWillUpdateProps,
|
|
onWillPatch,
|
|
onPatched,
|
|
onWillRender,
|
|
onRendered,
|
|
onWillDestroy,
|
|
onError,
|
|
} from "./component/lifecycle_hooks";
|
|
|
|
export const __info__ = {};
|