@lark.js/mvc 0.0.9 → 0.0.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/README.md +10 -32
- package/dist/chunk-RIV4NK3K.js +108 -0
- package/dist/compiler.cjs +733 -193
- package/dist/compiler.d.cts +35 -35
- package/dist/compiler.d.ts +35 -35
- package/dist/compiler.js +730 -193
- package/dist/devtool.cjs +3421 -0
- package/dist/devtool.d.cts +83 -0
- package/dist/devtool.d.ts +83 -0
- package/dist/devtool.js +3333 -0
- package/dist/index.cjs +811 -319
- package/dist/index.d.cts +247 -491
- package/dist/index.d.ts +247 -491
- package/dist/index.js +808 -280
- package/dist/rspack.cjs +15978 -0
- package/dist/rspack.d.cts +122 -0
- package/dist/rspack.d.ts +122 -0
- package/dist/{chunk-3HSA7OHB.js → rspack.js} +809 -193
- package/dist/runtime.cjs +35 -10
- package/dist/runtime.d.cts +22 -13
- package/dist/runtime.d.ts +22 -13
- package/dist/runtime.js +13 -34
- package/dist/vite.cjs +753 -195
- package/dist/vite.d.cts +3 -0
- package/dist/vite.d.ts +3 -0
- package/dist/vite.js +15917 -10
- package/dist/webpack.cjs +798 -201
- package/dist/webpack.d.cts +60 -4
- package/dist/webpack.d.ts +60 -4
- package/dist/webpack.js +15962 -14
- package/package.json +25 -2
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** Serialized view info attached to a frame node */
|
|
2
|
+
interface SerializedViewInfo {
|
|
3
|
+
/** View ID (same as frame ID) */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Whether the view has rendered at least once */
|
|
6
|
+
rendered: boolean;
|
|
7
|
+
/** View signature (> 0 = active) */
|
|
8
|
+
signature: number;
|
|
9
|
+
/** Observed state keys */
|
|
10
|
+
observedStateKeys: string[] | null;
|
|
11
|
+
/** Location observation config */
|
|
12
|
+
locationObserved: {
|
|
13
|
+
flag: number;
|
|
14
|
+
keys: string[];
|
|
15
|
+
observePath: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** Whether view has a template function */
|
|
18
|
+
hasTemplate: boolean;
|
|
19
|
+
/** Delegated event types (keys from $evtObjMap) */
|
|
20
|
+
eventMethodKeys: string[];
|
|
21
|
+
/** Captured resource keys */
|
|
22
|
+
resourceKeys: string[];
|
|
23
|
+
/** Whether view exposes an assign method (supports CrossSite reuse) */
|
|
24
|
+
hasAssign: boolean;
|
|
25
|
+
/** Updater refData snapshot (shallow copy of current data) */
|
|
26
|
+
updaterData: Record<string, unknown> | null;
|
|
27
|
+
}
|
|
28
|
+
/** A single node in the serialized frame tree */
|
|
29
|
+
interface SerializedFrameNode {
|
|
30
|
+
/** Frame ID (same as owner DOM element ID) */
|
|
31
|
+
id: string;
|
|
32
|
+
/** Parent frame ID (null for root) */
|
|
33
|
+
parentId: string | null;
|
|
34
|
+
/** View path (v-lark attribute value) */
|
|
35
|
+
viewPath: string | null;
|
|
36
|
+
/** Number of child frames */
|
|
37
|
+
childrenCount: number;
|
|
38
|
+
/** Number of children that have fired 'created' */
|
|
39
|
+
readyCount: number;
|
|
40
|
+
/** Whether children have been created */
|
|
41
|
+
childrenCreated: number;
|
|
42
|
+
/** Whether children are in alter state */
|
|
43
|
+
childrenAlter: number;
|
|
44
|
+
/** Whether this frame is destroyed */
|
|
45
|
+
destroyed: number;
|
|
46
|
+
/** Serialized view info (null if no view mounted) */
|
|
47
|
+
view: SerializedViewInfo | null;
|
|
48
|
+
/** Child frame nodes */
|
|
49
|
+
children: SerializedFrameNode[];
|
|
50
|
+
}
|
|
51
|
+
/** Top-level serialized frame tree */
|
|
52
|
+
interface SerializedFrameTree {
|
|
53
|
+
/** Root frame node */
|
|
54
|
+
root: SerializedFrameNode | null;
|
|
55
|
+
/** Total frame count */
|
|
56
|
+
totalFrames: number;
|
|
57
|
+
/** Timestamp of serialization */
|
|
58
|
+
timestamp: number;
|
|
59
|
+
/** Root element ID */
|
|
60
|
+
rootId: string;
|
|
61
|
+
}
|
|
62
|
+
declare const FrameDevtoolBridge: {
|
|
63
|
+
MSG_PING: string;
|
|
64
|
+
MSG_PONG: string;
|
|
65
|
+
MSG_REQUEST_TREE: string;
|
|
66
|
+
MSG_TREE: string;
|
|
67
|
+
MSG_TREE_DELTA: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Serialize the entire Frame tree starting from root.
|
|
71
|
+
* Returns an empty snapshot if the app hasn't booted yet.
|
|
72
|
+
*/
|
|
73
|
+
declare function serializeFrameTree(): SerializedFrameTree;
|
|
74
|
+
/**
|
|
75
|
+
* Install the Frame Devtool Bridge.
|
|
76
|
+
* Listens for postMessage events from the devtool panel and responds
|
|
77
|
+
* with serialized frame tree data.
|
|
78
|
+
*
|
|
79
|
+
* This should be called once during Framework.boot().
|
|
80
|
+
*/
|
|
81
|
+
declare function installFrameDevtoolBridge(): void;
|
|
82
|
+
|
|
83
|
+
export { FrameDevtoolBridge, type SerializedFrameNode, type SerializedFrameTree, type SerializedViewInfo, installFrameDevtoolBridge, serializeFrameTree };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** Serialized view info attached to a frame node */
|
|
2
|
+
interface SerializedViewInfo {
|
|
3
|
+
/** View ID (same as frame ID) */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Whether the view has rendered at least once */
|
|
6
|
+
rendered: boolean;
|
|
7
|
+
/** View signature (> 0 = active) */
|
|
8
|
+
signature: number;
|
|
9
|
+
/** Observed state keys */
|
|
10
|
+
observedStateKeys: string[] | null;
|
|
11
|
+
/** Location observation config */
|
|
12
|
+
locationObserved: {
|
|
13
|
+
flag: number;
|
|
14
|
+
keys: string[];
|
|
15
|
+
observePath: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** Whether view has a template function */
|
|
18
|
+
hasTemplate: boolean;
|
|
19
|
+
/** Delegated event types (keys from $evtObjMap) */
|
|
20
|
+
eventMethodKeys: string[];
|
|
21
|
+
/** Captured resource keys */
|
|
22
|
+
resourceKeys: string[];
|
|
23
|
+
/** Whether view exposes an assign method (supports CrossSite reuse) */
|
|
24
|
+
hasAssign: boolean;
|
|
25
|
+
/** Updater refData snapshot (shallow copy of current data) */
|
|
26
|
+
updaterData: Record<string, unknown> | null;
|
|
27
|
+
}
|
|
28
|
+
/** A single node in the serialized frame tree */
|
|
29
|
+
interface SerializedFrameNode {
|
|
30
|
+
/** Frame ID (same as owner DOM element ID) */
|
|
31
|
+
id: string;
|
|
32
|
+
/** Parent frame ID (null for root) */
|
|
33
|
+
parentId: string | null;
|
|
34
|
+
/** View path (v-lark attribute value) */
|
|
35
|
+
viewPath: string | null;
|
|
36
|
+
/** Number of child frames */
|
|
37
|
+
childrenCount: number;
|
|
38
|
+
/** Number of children that have fired 'created' */
|
|
39
|
+
readyCount: number;
|
|
40
|
+
/** Whether children have been created */
|
|
41
|
+
childrenCreated: number;
|
|
42
|
+
/** Whether children are in alter state */
|
|
43
|
+
childrenAlter: number;
|
|
44
|
+
/** Whether this frame is destroyed */
|
|
45
|
+
destroyed: number;
|
|
46
|
+
/** Serialized view info (null if no view mounted) */
|
|
47
|
+
view: SerializedViewInfo | null;
|
|
48
|
+
/** Child frame nodes */
|
|
49
|
+
children: SerializedFrameNode[];
|
|
50
|
+
}
|
|
51
|
+
/** Top-level serialized frame tree */
|
|
52
|
+
interface SerializedFrameTree {
|
|
53
|
+
/** Root frame node */
|
|
54
|
+
root: SerializedFrameNode | null;
|
|
55
|
+
/** Total frame count */
|
|
56
|
+
totalFrames: number;
|
|
57
|
+
/** Timestamp of serialization */
|
|
58
|
+
timestamp: number;
|
|
59
|
+
/** Root element ID */
|
|
60
|
+
rootId: string;
|
|
61
|
+
}
|
|
62
|
+
declare const FrameDevtoolBridge: {
|
|
63
|
+
MSG_PING: string;
|
|
64
|
+
MSG_PONG: string;
|
|
65
|
+
MSG_REQUEST_TREE: string;
|
|
66
|
+
MSG_TREE: string;
|
|
67
|
+
MSG_TREE_DELTA: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Serialize the entire Frame tree starting from root.
|
|
71
|
+
* Returns an empty snapshot if the app hasn't booted yet.
|
|
72
|
+
*/
|
|
73
|
+
declare function serializeFrameTree(): SerializedFrameTree;
|
|
74
|
+
/**
|
|
75
|
+
* Install the Frame Devtool Bridge.
|
|
76
|
+
* Listens for postMessage events from the devtool panel and responds
|
|
77
|
+
* with serialized frame tree data.
|
|
78
|
+
*
|
|
79
|
+
* This should be called once during Framework.boot().
|
|
80
|
+
*/
|
|
81
|
+
declare function installFrameDevtoolBridge(): void;
|
|
82
|
+
|
|
83
|
+
export { FrameDevtoolBridge, type SerializedFrameNode, type SerializedFrameTree, type SerializedViewInfo, installFrameDevtoolBridge, serializeFrameTree };
|