albio
Advanced tools
Comparing version 1.0.56 to 1.0.57
{ | ||
"name": "albio", | ||
"version": "1.0.56", | ||
"version": "1.0.57", | ||
"description": "π Tiny compiler-powered reactivity library for sensible web apps", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -1,7 +0,7 @@ | ||
import { Node, Statement } from 'estree'; | ||
import { Binding, CompilerParams, Props, Reference } from '../interfaces'; | ||
import { Node } from 'estree'; | ||
import { Binding, CompilerParams, Props, ReactiveStatement, Reference } from '../interfaces'; | ||
import Component from './Component'; | ||
import BlockComponent from './Block'; | ||
export default class Fragment extends Component { | ||
reactives: Statement[]; | ||
reactives: ReactiveStatement[]; | ||
residuals: Node[]; | ||
@@ -11,3 +11,4 @@ props: Props; | ||
constructor(parsed: CompilerParams); | ||
invalidateResiduals(ast: Node): void; | ||
invalidate_residuals(ast: Node): void; | ||
filter_reactive_deps(): void; | ||
render_fragment(blocks: BlockComponent[]): Node[]; | ||
@@ -14,0 +15,0 @@ render_handler_func(identifier: string, ref: Reference, event: string[]): Node[]; |
@@ -81,6 +81,10 @@ import { AnyNode } from 'domhandler'; | ||
props?: Props; | ||
reactives?: Statement[]; | ||
reactives?: ReactiveStatement[]; | ||
residuals?: Node[]; | ||
blocks?: Component[]; | ||
} | ||
export interface ReactiveStatement { | ||
chunk: Statement; | ||
deps: string[]; | ||
} | ||
export interface IterableKey { | ||
@@ -87,0 +91,0 @@ name: string; |
@@ -1,3 +0,3 @@ | ||
import { Props } from '../interfaces'; | ||
import { Node, Statement, Program } from 'estree'; | ||
import { Props, ReactiveStatement } from '../interfaces'; | ||
import { Node, Program } from 'estree'; | ||
import { Element } from 'domhandler'; | ||
@@ -11,4 +11,4 @@ export declare function parse_code(scripts: Element[]): { | ||
props: Props; | ||
reactives: Statement[]; | ||
reactives: ReactiveStatement[]; | ||
residuals: Node[]; | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3912923
33567