mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
9b1ec5dc0e
This commit moves OwlError to its own file in the new common folder such that it is no longer associated with the runtime.
63 lines
1.3 KiB
TypeScript
63 lines
1.3 KiB
TypeScript
import { App } from "./app";
|
|
import {
|
|
config,
|
|
createBlock,
|
|
html,
|
|
list,
|
|
mount as blockMount,
|
|
multi,
|
|
patch,
|
|
remove,
|
|
text,
|
|
toggler,
|
|
comment,
|
|
} from "./blockdom";
|
|
import { mainEventHandler } from "./event_handling";
|
|
|
|
config.shouldNormalizeDom = false;
|
|
config.mainEventHandler = mainEventHandler;
|
|
|
|
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";
|
|
export { xml } from "./template_set";
|
|
export { Component } from "./component";
|
|
export type { ComponentConstructor } from "./component";
|
|
export { useComponent, useState } from "./component_node";
|
|
export { status } from "./status";
|
|
export { 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 "./lifecycle_hooks";
|
|
export { validate, validateType } from "./validation";
|
|
export { OwlError } from "../common/owl_error";
|
|
|
|
export const __info__ = {
|
|
version: App.version,
|
|
};
|