@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/webpack.d.cts
CHANGED
|
@@ -1,22 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @lark.js/mvc Vite Plugin for Template Compilation
|
|
3
|
+
*
|
|
4
|
+
* Compiles .html template files using @lark.js/mvc template syntax
|
|
5
|
+
* into JS function modules at build/dev time.
|
|
6
|
+
*
|
|
7
|
+
* 0 configuration — just add the plugin and it works.
|
|
8
|
+
* - All template operators: = (escape), ! (raw), @ (ref lookup), : (binding)
|
|
9
|
+
* - @event attribute processing with $g prefix
|
|
10
|
+
* - $eu (URI encoding), $eq (quote encoding), $i (reference lookup)
|
|
11
|
+
* - Debug mode with line tracking
|
|
12
|
+
* - View ID injection
|
|
13
|
+
* - Auto variable extraction
|
|
14
|
+
*
|
|
15
|
+
* Usage in vite.config.ts:
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { larkMvcPlugin } from '@lark.js/mvc/vite';
|
|
18
|
+
*
|
|
19
|
+
* export default defineConfig({
|
|
20
|
+
* plugins: [larkMvcPlugin()],
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
interface LarkMvcVitePluginOptions {
|
|
26
|
+
/** Enable debug mode with line tracking (default: false) */
|
|
27
|
+
debug?: boolean;
|
|
28
|
+
/** Enable virtual DOM output (default: false) */
|
|
29
|
+
virtualDom?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type LarkMvcWebpackLoaderOptions = LarkMvcVitePluginOptions;
|
|
1
33
|
/** Webpack loader context */
|
|
2
34
|
interface LoaderContext {
|
|
3
35
|
/** Whether in development mode */
|
|
4
36
|
dev?: boolean;
|
|
5
37
|
/** Loader options */
|
|
6
|
-
getOptions: () =>
|
|
7
|
-
debug?: boolean;
|
|
8
|
-
virtualDom?: boolean;
|
|
9
|
-
useSwc?: boolean;
|
|
10
|
-
};
|
|
38
|
+
getOptions: () => LarkMvcWebpackLoaderOptions;
|
|
11
39
|
}
|
|
12
40
|
/** Plugin options */
|
|
13
|
-
interface
|
|
14
|
-
/** Enable debug mode with line tracking (default: false) */
|
|
15
|
-
debug?: boolean;
|
|
16
|
-
/** Enable virtual DOM output (default: false) */
|
|
17
|
-
virtualDom?: boolean;
|
|
18
|
-
/** Use SWC instead of Babel for AST analysis (default: false) */
|
|
19
|
-
useSwc?: boolean;
|
|
41
|
+
interface LarkMvcWebpackPluginOptions extends LarkMvcWebpackLoaderOptions {
|
|
20
42
|
/** File extension to match (default: /\.html$/) */
|
|
21
43
|
test?: RegExp;
|
|
22
44
|
/** Exclude pattern (default: /node_modules/) */
|
|
@@ -49,7 +71,6 @@ declare function larkMvcLoader(this: LoaderContext, source: string): Promise<str
|
|
|
49
71
|
* new LarkMvcPlugin({
|
|
50
72
|
* debug: true,
|
|
51
73
|
* virtualDom: false,
|
|
52
|
-
* useSwc: false,
|
|
53
74
|
* }),
|
|
54
75
|
* ],
|
|
55
76
|
* };
|
|
@@ -57,7 +78,7 @@ declare function larkMvcLoader(this: LoaderContext, source: string): Promise<str
|
|
|
57
78
|
*/
|
|
58
79
|
declare class LarkMvcPlugin {
|
|
59
80
|
private options;
|
|
60
|
-
constructor(options?:
|
|
81
|
+
constructor(options?: LarkMvcWebpackPluginOptions);
|
|
61
82
|
/**
|
|
62
83
|
* Webpack plugin entry point.
|
|
63
84
|
* Called by webpack when the plugin is applied.
|
|
@@ -72,3 +93,4 @@ declare class LarkMvcPlugin {
|
|
|
72
93
|
}
|
|
73
94
|
|
|
74
95
|
export { LarkMvcPlugin, larkMvcLoader as default, larkMvcLoader };
|
|
96
|
+
export type { LarkMvcWebpackLoaderOptions, LarkMvcWebpackPluginOptions };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,22 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @lark.js/mvc Vite Plugin for Template Compilation
|
|
3
|
+
*
|
|
4
|
+
* Compiles .html template files using @lark.js/mvc template syntax
|
|
5
|
+
* into JS function modules at build/dev time.
|
|
6
|
+
*
|
|
7
|
+
* 0 configuration — just add the plugin and it works.
|
|
8
|
+
* - All template operators: = (escape), ! (raw), @ (ref lookup), : (binding)
|
|
9
|
+
* - @event attribute processing with $g prefix
|
|
10
|
+
* - $eu (URI encoding), $eq (quote encoding), $i (reference lookup)
|
|
11
|
+
* - Debug mode with line tracking
|
|
12
|
+
* - View ID injection
|
|
13
|
+
* - Auto variable extraction
|
|
14
|
+
*
|
|
15
|
+
* Usage in vite.config.ts:
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { larkMvcPlugin } from '@lark.js/mvc/vite';
|
|
18
|
+
*
|
|
19
|
+
* export default defineConfig({
|
|
20
|
+
* plugins: [larkMvcPlugin()],
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
interface LarkMvcVitePluginOptions {
|
|
26
|
+
/** Enable debug mode with line tracking (default: false) */
|
|
27
|
+
debug?: boolean;
|
|
28
|
+
/** Enable virtual DOM output (default: false) */
|
|
29
|
+
virtualDom?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type LarkMvcWebpackLoaderOptions = LarkMvcVitePluginOptions;
|
|
1
33
|
/** Webpack loader context */
|
|
2
34
|
interface LoaderContext {
|
|
3
35
|
/** Whether in development mode */
|
|
4
36
|
dev?: boolean;
|
|
5
37
|
/** Loader options */
|
|
6
|
-
getOptions: () =>
|
|
7
|
-
debug?: boolean;
|
|
8
|
-
virtualDom?: boolean;
|
|
9
|
-
useSwc?: boolean;
|
|
10
|
-
};
|
|
38
|
+
getOptions: () => LarkMvcWebpackLoaderOptions;
|
|
11
39
|
}
|
|
12
40
|
/** Plugin options */
|
|
13
|
-
interface
|
|
14
|
-
/** Enable debug mode with line tracking (default: false) */
|
|
15
|
-
debug?: boolean;
|
|
16
|
-
/** Enable virtual DOM output (default: false) */
|
|
17
|
-
virtualDom?: boolean;
|
|
18
|
-
/** Use SWC instead of Babel for AST analysis (default: false) */
|
|
19
|
-
useSwc?: boolean;
|
|
41
|
+
interface LarkMvcWebpackPluginOptions extends LarkMvcWebpackLoaderOptions {
|
|
20
42
|
/** File extension to match (default: /\.html$/) */
|
|
21
43
|
test?: RegExp;
|
|
22
44
|
/** Exclude pattern (default: /node_modules/) */
|
|
@@ -49,7 +71,6 @@ declare function larkMvcLoader(this: LoaderContext, source: string): Promise<str
|
|
|
49
71
|
* new LarkMvcPlugin({
|
|
50
72
|
* debug: true,
|
|
51
73
|
* virtualDom: false,
|
|
52
|
-
* useSwc: false,
|
|
53
74
|
* }),
|
|
54
75
|
* ],
|
|
55
76
|
* };
|
|
@@ -57,7 +78,7 @@ declare function larkMvcLoader(this: LoaderContext, source: string): Promise<str
|
|
|
57
78
|
*/
|
|
58
79
|
declare class LarkMvcPlugin {
|
|
59
80
|
private options;
|
|
60
|
-
constructor(options?:
|
|
81
|
+
constructor(options?: LarkMvcWebpackPluginOptions);
|
|
61
82
|
/**
|
|
62
83
|
* Webpack plugin entry point.
|
|
63
84
|
* Called by webpack when the plugin is applied.
|
|
@@ -72,3 +93,4 @@ declare class LarkMvcPlugin {
|
|
|
72
93
|
}
|
|
73
94
|
|
|
74
95
|
export { LarkMvcPlugin, larkMvcLoader as default, larkMvcLoader };
|
|
96
|
+
export type { LarkMvcWebpackLoaderOptions, LarkMvcWebpackPluginOptions };
|