@odoo/owl 3.0.0-alpha.24 → 3.0.0-alpha.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,10 @@ import { BDom, VNode } from "./blockdom";
3
3
  import { Component, ComponentConstructor } from "./component";
4
4
  import { PluginManager } from "./plugin_manager";
5
5
  import { ComputationAtom } from "./reactivity/computations";
6
- import { Fiber, MountFiber, MountOptions } from "./rendering/fibers";
6
+ import { Fiber, MountFiber } from "./rendering/fibers";
7
7
  import { STATUS } from "./status";
8
8
  type LifecycleHook = Function;
9
9
  export declare class ComponentNode implements VNode<ComponentNode> {
10
- el?: HTMLElement | Text | undefined;
11
10
  app: App;
12
11
  fiber: Fiber | null;
13
12
  component: Component;
@@ -33,7 +32,6 @@ export declare class ComponentNode implements VNode<ComponentNode> {
33
32
  computations: ComputationAtom[];
34
33
  pluginManager: PluginManager;
35
34
  constructor(C: ComponentConstructor, props: Record<string, any>, app: App, parent: ComponentNode | null, parentKey: string | null);
36
- mountComponent(target: any, options?: MountOptions): void;
37
35
  initiateRender(fiber: Fiber | MountFiber): Promise<void>;
38
36
  render(deep: boolean): Promise<void>;
39
37
  cancel(): void;
@@ -1,4 +1,4 @@
1
- import { BDom } from "../blockdom";
1
+ import { BDom, type MountTarget } from "../blockdom";
2
2
  import type { ComponentNode } from "../component_node";
3
3
  export declare function makeChildFiber(node: ComponentNode, parent: Fiber): Fiber;
4
4
  export declare function makeRootFiber(node: ComponentNode): Fiber;
@@ -28,9 +28,9 @@ export interface MountOptions {
28
28
  position?: Position;
29
29
  }
30
30
  export declare class MountFiber extends RootFiber {
31
- target: HTMLElement;
31
+ target: MountTarget;
32
32
  position: Position;
33
- constructor(node: ComponentNode, target: HTMLElement, options?: MountOptions);
33
+ constructor(node: ComponentNode, target: MountTarget, options?: MountOptions);
34
34
  complete(): void;
35
35
  }
36
36
  export {};
@@ -6,7 +6,7 @@ type Constructor<T = any> = {
6
6
  export type GetOptionalEntries<T> = {
7
7
  [K in keyof T as K extends `${infer P}?` ? P : never]?: T[K];
8
8
  };
9
- export type GetRequiredEntries<T> = {
9
+ type GetRequiredEntries<T> = {
10
10
  [K in keyof T as K extends `${string}?` ? never : K]: T[K];
11
11
  };
12
12
  export type PrettifyShape<T> = T extends Function ? T : {
@@ -1,4 +1,4 @@
1
- export type Callback = (...args: any[]) => void;
1
+ type Callback = (...args: any[]) => void;
2
2
  /**
3
3
  * Creates a batched version of a callback so that all calls to it in the same
4
4
  * microtick will only call the original callback once.
@@ -22,3 +22,4 @@ export declare class Markup extends String {
22
22
  export declare function htmlEscape(str: any): Markup;
23
23
  export declare function markup(strings: TemplateStringsArray, ...placeholders: unknown[]): Markup;
24
24
  export declare function markup(value: string): Markup;
25
+ export {};
@@ -1 +1 @@
1
- export declare const version = "3.0.0-alpha.24";
1
+ export declare const version = "3.0.0-alpha.26";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/owl",
3
- "version": "3.0.0-alpha.24",
3
+ "version": "3.0.0-alpha.26",
4
4
  "description": "Odoo Web Library (OWL)",
5
5
  "main": "dist/owl.cjs.js",
6
6
  "module": "dist/owl.es.js",