@lark.js/mvc 0.0.13 → 0.0.15
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 +4 -5
- package/dist/apply-style.d.ts +9 -0
- package/dist/cache.d.ts +69 -0
- package/dist/common.d.ts +64 -0
- package/dist/compiler/compile-template.d.ts +16 -0
- package/dist/compiler/compile-to-vdom-function.d.ts +13 -0
- package/dist/compiler/extract-global-vars.d.ts +17 -0
- package/dist/compiler/template-syntax.d.ts +61 -0
- package/dist/compiler.cjs +15843 -15805
- package/dist/compiler.d.cts +1 -30
- package/dist/compiler.d.ts +1 -30
- package/dist/compiler.js +15840 -15789
- package/dist/cross-site.d.ts +29 -0
- package/dist/devtool.cjs +4139 -3166
- package/dist/devtool.d.cts +2 -1
- package/dist/devtool.d.ts +2 -1
- package/dist/devtool.js +4149 -3092
- package/dist/dom.d.ts +45 -0
- package/dist/event-delegator.d.ts +28 -0
- package/dist/event-emitter.d.ts +38 -0
- package/dist/frame.d.ts +143 -0
- package/dist/framework.d.ts +9 -0
- package/dist/hmr.d.ts +53 -0
- package/dist/index.amd.js +6285 -0
- package/dist/index.cjs +5959 -4484
- package/dist/index.d.cts +10 -19
- package/dist/index.d.ts +10 -19
- package/dist/index.js +5919 -4419
- package/dist/index.umd.js +6272 -0
- package/dist/mark.d.ts +26 -0
- package/dist/module-loader.d.ts +20 -0
- package/dist/router.d.ts +14 -0
- package/dist/rspack.cjs +15927 -15877
- package/dist/rspack.d.cts +45 -23
- package/dist/rspack.d.ts +45 -23
- package/dist/rspack.js +15926 -15870
- package/dist/runtime.amd.js +94 -0
- package/dist/runtime.cjs +79 -82
- package/dist/runtime.js +85 -19
- package/dist/runtime.umd.js +98 -0
- package/dist/service.d.ts +173 -0
- package/dist/state.d.ts +8 -0
- package/dist/store.d.ts +60 -0
- package/dist/types.d.ts +1259 -0
- package/dist/updater.d.ts +90 -0
- package/dist/url-state.d.ts +32 -0
- package/dist/utils.d.ts +90 -0
- package/dist/vdom.d.ts +45 -0
- package/dist/view-registry.d.ts +20 -0
- package/dist/view.d.ts +214 -0
- package/dist/vite.cjs +15940 -15898
- package/dist/vite.d.cts +10 -8
- package/dist/vite.d.ts +10 -8
- package/dist/vite.js +15937 -15890
- package/dist/webpack.cjs +15977 -15877
- package/dist/webpack.d.cts +36 -14
- package/dist/webpack.d.ts +36 -14
- package/dist/webpack.js +15976 -15870
- package/package.json +6 -5
- package/dist/chunk-66OZBBSP.js +0 -108
- /package/{src → dist}/client.d.ts +0 -0
package/dist/compiler.d.cts
CHANGED
|
@@ -8,8 +8,6 @@ interface CompileOptions {
|
|
|
8
8
|
file?: string;
|
|
9
9
|
/** Generate VDOM output instead of HTML string (default: false) */
|
|
10
10
|
virtualDom?: boolean;
|
|
11
|
-
/** Use SWC instead of Babel for parsing (default: false) */
|
|
12
|
-
useSwc?: boolean;
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
/**
|
|
@@ -28,33 +26,6 @@ interface CompileOptions {
|
|
|
28
26
|
*/
|
|
29
27
|
declare function compileTemplate(source: string, options?: CompileOptions): Promise<string>;
|
|
30
28
|
|
|
31
|
-
/**
|
|
32
|
-
* Extract global variable names from a template source using AST analysis.
|
|
33
|
-
*
|
|
34
|
-
* 1. Convert template commands (<% %> blocks) into a form parseable by an AST parser
|
|
35
|
-
* 2. Walk the AST to find all Identifier nodes
|
|
36
|
-
* 3. Track variable declarations (VariableDeclarator, FunctionDeclaration) as local vars
|
|
37
|
-
* 4. Track function parameters as local vars
|
|
38
|
-
* 5. Remaining identifiers that are not local and not in the exclusion list are "global" —
|
|
39
|
-
* they must be passed in as part of the data context ($$)
|
|
40
|
-
*
|
|
41
|
-
* This replaces the old regex-based `extractVariables()` with proper scope analysis,
|
|
42
|
-
* eliminating false positives from local template variables and function parameters.
|
|
43
|
-
*
|
|
44
|
-
* @param source - The raw HTML template content (with {{ }} syntax)
|
|
45
|
-
* @returns Array of global variable names found in the template
|
|
46
|
-
*/
|
|
47
|
-
declare function extractGlobalVars$1(source: string): Promise<string[]>;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Extract global variable names from a template source using SWC AST analysis.
|
|
51
|
-
*
|
|
52
|
-
* 1. Convert template commands ({{ }} blocks) into a form parseable by SWC
|
|
53
|
-
* 2. Walk the AST to find all Identifier nodes
|
|
54
|
-
* 3. Track variable declarations (VariableDeclarator, FunctionDeclaration) as local vars
|
|
55
|
-
* 4. Track function parameters as local vars
|
|
56
|
-
* 5. Remaining identifiers that are not local and not in the exclusion list are "global"
|
|
57
|
-
*/
|
|
58
29
|
/**
|
|
59
30
|
* Extract global variable names from a template source using AST analysis.
|
|
60
31
|
*
|
|
@@ -73,4 +44,4 @@ declare function extractGlobalVars$1(source: string): Promise<string[]>;
|
|
|
73
44
|
*/
|
|
74
45
|
declare function extractGlobalVars(source: string): Promise<string[]>;
|
|
75
46
|
|
|
76
|
-
export { compileTemplate, extractGlobalVars
|
|
47
|
+
export { compileTemplate, extractGlobalVars };
|
package/dist/compiler.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ interface CompileOptions {
|
|
|
8
8
|
file?: string;
|
|
9
9
|
/** Generate VDOM output instead of HTML string (default: false) */
|
|
10
10
|
virtualDom?: boolean;
|
|
11
|
-
/** Use SWC instead of Babel for parsing (default: false) */
|
|
12
|
-
useSwc?: boolean;
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
/**
|
|
@@ -28,33 +26,6 @@ interface CompileOptions {
|
|
|
28
26
|
*/
|
|
29
27
|
declare function compileTemplate(source: string, options?: CompileOptions): Promise<string>;
|
|
30
28
|
|
|
31
|
-
/**
|
|
32
|
-
* Extract global variable names from a template source using AST analysis.
|
|
33
|
-
*
|
|
34
|
-
* 1. Convert template commands (<% %> blocks) into a form parseable by an AST parser
|
|
35
|
-
* 2. Walk the AST to find all Identifier nodes
|
|
36
|
-
* 3. Track variable declarations (VariableDeclarator, FunctionDeclaration) as local vars
|
|
37
|
-
* 4. Track function parameters as local vars
|
|
38
|
-
* 5. Remaining identifiers that are not local and not in the exclusion list are "global" —
|
|
39
|
-
* they must be passed in as part of the data context ($$)
|
|
40
|
-
*
|
|
41
|
-
* This replaces the old regex-based `extractVariables()` with proper scope analysis,
|
|
42
|
-
* eliminating false positives from local template variables and function parameters.
|
|
43
|
-
*
|
|
44
|
-
* @param source - The raw HTML template content (with {{ }} syntax)
|
|
45
|
-
* @returns Array of global variable names found in the template
|
|
46
|
-
*/
|
|
47
|
-
declare function extractGlobalVars$1(source: string): Promise<string[]>;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Extract global variable names from a template source using SWC AST analysis.
|
|
51
|
-
*
|
|
52
|
-
* 1. Convert template commands ({{ }} blocks) into a form parseable by SWC
|
|
53
|
-
* 2. Walk the AST to find all Identifier nodes
|
|
54
|
-
* 3. Track variable declarations (VariableDeclarator, FunctionDeclaration) as local vars
|
|
55
|
-
* 4. Track function parameters as local vars
|
|
56
|
-
* 5. Remaining identifiers that are not local and not in the exclusion list are "global"
|
|
57
|
-
*/
|
|
58
29
|
/**
|
|
59
30
|
* Extract global variable names from a template source using AST analysis.
|
|
60
31
|
*
|
|
@@ -73,4 +44,4 @@ declare function extractGlobalVars$1(source: string): Promise<string[]>;
|
|
|
73
44
|
*/
|
|
74
45
|
declare function extractGlobalVars(source: string): Promise<string[]>;
|
|
75
46
|
|
|
76
|
-
export { compileTemplate, extractGlobalVars
|
|
47
|
+
export { compileTemplate, extractGlobalVars };
|