valyrian.js 7.2.9 → 7.2.11
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.
- package/dist/dataset/index.d.ts +2 -2
- package/dist/dataset/index.d.ts.map +1 -1
- package/dist/dataset/index.js +11 -4
- package/dist/dataset/index.js.map +2 -2
- package/dist/dataset/index.mjs +10 -4
- package/dist/dataset/index.mjs.map +2 -2
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.js.map +2 -2
- package/dist/hooks/index.mjs.map +2 -2
- package/dist/index.d.ts +17 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +2 -2
- package/dist/node/index.js +22 -11
- package/dist/node/index.js.map +2 -2
- package/dist/node/index.mjs +21 -11
- package/dist/node/index.mjs.map +2 -2
- package/dist/node/utils/inline.d.ts +2 -2
- package/dist/node/utils/inline.d.ts.map +1 -1
- package/dist/node/utils/tree-adapter.d.ts +3 -3
- package/dist/node/utils/tree-adapter.d.ts.map +1 -1
- package/dist/proxy-signal/index.js +1 -0
- package/dist/proxy-signal/index.js.map +1 -1
- package/dist/request/index.js +1 -0
- package/dist/request/index.js.map +1 -1
- package/dist/router/index.d.ts +2 -2
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js +5 -3
- package/dist/router/index.js.map +3 -3
- package/dist/router/index.mjs +4 -3
- package/dist/router/index.mjs.map +3 -3
- package/dist/signal/index.d.ts.map +1 -1
- package/dist/signal/index.js +3 -2
- package/dist/signal/index.js.map +2 -2
- package/dist/signal/index.mjs +2 -2
- package/dist/signal/index.mjs.map +2 -2
- package/dist/store/index.js +1 -0
- package/dist/store/index.js.map +1 -1
- package/dist/sw/index.d.ts +1 -1
- package/dist/sw/index.d.ts.map +1 -1
- package/dist/sw/index.js +1 -0
- package/dist/sw/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/lib/dataset/index.ts +15 -7
- package/lib/hooks/index.ts +2 -2
- package/lib/index.d.ts +0 -0
- package/lib/index.ts +22 -31
- package/lib/interfaces.ts.bak +141 -0
- package/lib/node/utils/inline.ts +17 -2
- package/lib/node/utils/tree-adapter.ts +15 -11
- package/lib/router/index.ts +16 -4
- package/lib/signal/index.ts +5 -5
- package/package.json +1 -1
- package/tsconfig.json +22 -8
- package/dist/interfaces.d.ts +0 -96
- package/dist/interfaces.d.ts.map +0 -1
- package/lib/interfaces.ts +0 -98
package/dist/interfaces.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
declare module "valyrian.js" {
|
|
2
|
-
interface Props {
|
|
3
|
-
key?: string | number;
|
|
4
|
-
state?: any;
|
|
5
|
-
oncreate?: {
|
|
6
|
-
(vnode: VnodeInterface): never;
|
|
7
|
-
};
|
|
8
|
-
onupdate?: {
|
|
9
|
-
(vnode: VnodeInterface, oldVnode: VnodeInterface): never;
|
|
10
|
-
};
|
|
11
|
-
onremove?: {
|
|
12
|
-
(oldVnode: VnodeInterface): never;
|
|
13
|
-
};
|
|
14
|
-
shouldupdate?: {
|
|
15
|
-
(vnode: VnodeInterface, oldVnode: VnodeInterface): undefined | boolean;
|
|
16
|
-
};
|
|
17
|
-
[key: string | number | symbol]: any;
|
|
18
|
-
}
|
|
19
|
-
interface DomElement extends Element {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
}
|
|
22
|
-
interface VnodeInterface {
|
|
23
|
-
new (tag: string | Component | POJOComponent, props: Props, children: Children): VnodeInterface;
|
|
24
|
-
tag: string | Component | POJOComponent;
|
|
25
|
-
props: Props;
|
|
26
|
-
children: Children;
|
|
27
|
-
isSVG?: boolean;
|
|
28
|
-
dom?: DomElement;
|
|
29
|
-
processed?: boolean;
|
|
30
|
-
[key: string | number | symbol]: any;
|
|
31
|
-
}
|
|
32
|
-
interface VnodeWithDom extends VnodeInterface {
|
|
33
|
-
dom: DomElement;
|
|
34
|
-
}
|
|
35
|
-
interface Component {
|
|
36
|
-
(props?: Props | null, ...children: any[]): VnodeInterface | Children | any;
|
|
37
|
-
[key: string]: any;
|
|
38
|
-
}
|
|
39
|
-
interface POJOComponent {
|
|
40
|
-
view: Component;
|
|
41
|
-
props?: Props | null;
|
|
42
|
-
children?: any[];
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
}
|
|
45
|
-
interface VnodeComponentInterface extends VnodeInterface {
|
|
46
|
-
tag: Component | POJOComponent;
|
|
47
|
-
props: Props;
|
|
48
|
-
children: Children;
|
|
49
|
-
}
|
|
50
|
-
interface Children extends Array<VnodeInterface | VnodeComponentInterface | any> {
|
|
51
|
-
}
|
|
52
|
-
interface Directive {
|
|
53
|
-
(value: any, vnode: VnodeWithDom, oldVnode?: VnodeWithDom): void | boolean;
|
|
54
|
-
}
|
|
55
|
-
interface Directives {
|
|
56
|
-
[key: string]: Directive;
|
|
57
|
-
}
|
|
58
|
-
interface ReservedProps {
|
|
59
|
-
[key: string]: true;
|
|
60
|
-
}
|
|
61
|
-
interface Current {
|
|
62
|
-
component: Component | POJOComponent | null;
|
|
63
|
-
vnode: VnodeWithDom | null;
|
|
64
|
-
oldVnode?: VnodeWithDom | null;
|
|
65
|
-
event: Event | null;
|
|
66
|
-
}
|
|
67
|
-
interface V {
|
|
68
|
-
(tagOrComponent: string | Component | POJOComponent, props: Props | null, ...children: Children): VnodeInterface | VnodeComponentInterface;
|
|
69
|
-
fragment(_: any, ...children: Children): Children;
|
|
70
|
-
}
|
|
71
|
-
let isNodeJs: boolean;
|
|
72
|
-
function createDomElement(tag: string, isSVG?: boolean): DomElement;
|
|
73
|
-
const Vnode: VnodeInterface;
|
|
74
|
-
function isComponent(component: any): component is Component;
|
|
75
|
-
const isVnode: (object?: unknown | VnodeInterface) => object is VnodeInterface;
|
|
76
|
-
const isVnodeComponent: (object?: unknown | VnodeComponentInterface) => object is VnodeComponentInterface;
|
|
77
|
-
function domToVnode(dom: any): VnodeWithDom;
|
|
78
|
-
function trust(htmlString: string): any;
|
|
79
|
-
const current: Current;
|
|
80
|
-
const reservedProps: Record<string, true>;
|
|
81
|
-
function onMount(callback: any): void;
|
|
82
|
-
function onUpdate(callback: any): void;
|
|
83
|
-
function onCleanup(callback: any): void;
|
|
84
|
-
function onUnmount(callback: any): void;
|
|
85
|
-
const directives: Directives;
|
|
86
|
-
function directive(name: string, directive: Directive): void;
|
|
87
|
-
function setAttribute(name: string, value: any, newVnode: VnodeWithDom, oldVnode?: VnodeWithDom): void;
|
|
88
|
-
function updateAttributes(newVnode: VnodeWithDom, oldVnode?: VnodeWithDom): void;
|
|
89
|
-
function patch(newVnode: VnodeWithDom, oldVnode?: VnodeWithDom): void;
|
|
90
|
-
function update(): void | string;
|
|
91
|
-
function updateVnode(vnode: VnodeWithDom, oldVnode: VnodeWithDom): string | void;
|
|
92
|
-
function unmount(): string | void;
|
|
93
|
-
function mount(dom: any, component: any): string | void;
|
|
94
|
-
const v: V;
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=interfaces.d.ts.map
|
package/dist/interfaces.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../lib/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAiB,KAAK;QACpB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtB,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,QAAQ,CAAC,EAAE;YACT,CAAC,KAAK,EAAE,cAAc,GAAG,KAAK,CAAC;SAChC,CAAC;QACF,QAAQ,CAAC,EAAE;YACT,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,GAAG,KAAK,CAAC;SAC1D,CAAC;QACF,QAAQ,CAAC,EAAE;YACT,CAAC,QAAQ,EAAE,cAAc,GAAG,KAAK,CAAC;SACnC,CAAC;QACF,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GAAG,IAAI,CAAC;IACxF,SAAgB,OAAO,IAAI,MAAM,GAAG,IAAI,CAAC;IACzC,SAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAG,MAAM,GAAG,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,CAAC,CAAC;CACnB"}
|
package/lib/interfaces.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-use-before-define */
|
|
2
|
-
/* eslint-disable no-unused-vars */
|
|
3
|
-
declare module "valyrian.js" {
|
|
4
|
-
export interface Props {
|
|
5
|
-
key?: string | number;
|
|
6
|
-
state?: any;
|
|
7
|
-
oncreate?: {
|
|
8
|
-
(vnode: VnodeInterface): never;
|
|
9
|
-
};
|
|
10
|
-
onupdate?: {
|
|
11
|
-
(vnode: VnodeInterface, oldVnode: VnodeInterface): never;
|
|
12
|
-
};
|
|
13
|
-
onremove?: {
|
|
14
|
-
(oldVnode: VnodeInterface): never;
|
|
15
|
-
};
|
|
16
|
-
shouldupdate?: {
|
|
17
|
-
(vnode: VnodeInterface, oldVnode: VnodeInterface): undefined | boolean;
|
|
18
|
-
};
|
|
19
|
-
[key: string | number | symbol]: any;
|
|
20
|
-
}
|
|
21
|
-
export interface DomElement extends Element {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}
|
|
24
|
-
export interface VnodeInterface {
|
|
25
|
-
new (tag: string | Component | POJOComponent, props: Props, children: Children): VnodeInterface;
|
|
26
|
-
tag: string | Component | POJOComponent;
|
|
27
|
-
props: Props;
|
|
28
|
-
children: Children;
|
|
29
|
-
isSVG?: boolean;
|
|
30
|
-
dom?: DomElement;
|
|
31
|
-
processed?: boolean;
|
|
32
|
-
[key: string | number | symbol]: any;
|
|
33
|
-
}
|
|
34
|
-
export interface VnodeWithDom extends VnodeInterface {
|
|
35
|
-
dom: DomElement;
|
|
36
|
-
}
|
|
37
|
-
export interface Component {
|
|
38
|
-
(props?: Props | null, ...children: any[]): VnodeInterface | Children | any;
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}
|
|
41
|
-
export interface POJOComponent {
|
|
42
|
-
view: Component;
|
|
43
|
-
props?: Props | null;
|
|
44
|
-
children?: any[];
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
}
|
|
47
|
-
export interface VnodeComponentInterface extends VnodeInterface {
|
|
48
|
-
tag: Component | POJOComponent;
|
|
49
|
-
props: Props;
|
|
50
|
-
children: Children;
|
|
51
|
-
}
|
|
52
|
-
export interface Children extends Array<VnodeInterface | VnodeComponentInterface | any> {}
|
|
53
|
-
export interface Directive {
|
|
54
|
-
(value: any, vnode: VnodeWithDom, oldVnode?: VnodeWithDom): void | boolean;
|
|
55
|
-
}
|
|
56
|
-
export interface Directives {
|
|
57
|
-
[key: string]: Directive;
|
|
58
|
-
}
|
|
59
|
-
export interface ReservedProps {
|
|
60
|
-
[key: string]: true;
|
|
61
|
-
}
|
|
62
|
-
export interface Current {
|
|
63
|
-
component: Component | POJOComponent | null;
|
|
64
|
-
vnode: VnodeWithDom | null;
|
|
65
|
-
oldVnode?: VnodeWithDom | null;
|
|
66
|
-
event: Event | null;
|
|
67
|
-
}
|
|
68
|
-
export interface V {
|
|
69
|
-
(tagOrComponent: string | Component | POJOComponent, props: Props | null, ...children: Children):
|
|
70
|
-
| VnodeInterface
|
|
71
|
-
| VnodeComponentInterface;
|
|
72
|
-
fragment(_: any, ...children: Children): Children;
|
|
73
|
-
}
|
|
74
|
-
export let isNodeJs: boolean;
|
|
75
|
-
export function createDomElement(tag: string, isSVG?: boolean): DomElement;
|
|
76
|
-
export const Vnode: VnodeInterface;
|
|
77
|
-
export function isComponent(component: any): component is Component;
|
|
78
|
-
export const isVnode: (object?: unknown | VnodeInterface) => object is VnodeInterface;
|
|
79
|
-
export const isVnodeComponent: (object?: unknown | VnodeComponentInterface) => object is VnodeComponentInterface;
|
|
80
|
-
export function domToVnode(dom: any): VnodeWithDom;
|
|
81
|
-
export function trust(htmlString: string): any;
|
|
82
|
-
export const current: Current;
|
|
83
|
-
export const reservedProps: Record<string, true>;
|
|
84
|
-
export function onMount(callback: any): void;
|
|
85
|
-
export function onUpdate(callback: any): void;
|
|
86
|
-
export function onCleanup(callback: any): void;
|
|
87
|
-
export function onUnmount(callback: any): void;
|
|
88
|
-
export const directives: Directives;
|
|
89
|
-
export function directive(name: string, directive: Directive): void;
|
|
90
|
-
export function setAttribute(name: string, value: any, newVnode: VnodeWithDom, oldVnode?: VnodeWithDom): void;
|
|
91
|
-
export function updateAttributes(newVnode: VnodeWithDom, oldVnode?: VnodeWithDom): void;
|
|
92
|
-
export function patch(newVnode: VnodeWithDom, oldVnode?: VnodeWithDom): void;
|
|
93
|
-
export function update(): void | string;
|
|
94
|
-
export function updateVnode(vnode: VnodeWithDom, oldVnode: VnodeWithDom): string | void;
|
|
95
|
-
export function unmount(): string | void;
|
|
96
|
-
export function mount(dom: any, component: any): string | void;
|
|
97
|
-
export const v: V;
|
|
98
|
-
}
|