@lark.js/mvc 0.0.14 → 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 -4
- package/dist/apply-style.d.ts +9 -0
- package/dist/cache.d.ts +69 -0
- package/dist/client.d.ts +87 -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 +15847 -15482
- package/dist/compiler.js +15844 -15467
- package/dist/cross-site.d.ts +29 -0
- package/dist/devtool.cjs +4138 -3183
- package/dist/devtool.d.cts +2 -1
- package/dist/devtool.d.ts +2 -1
- package/dist/devtool.js +4164 -3125
- 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 -4489
- package/dist/index.d.cts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +5920 -4425
- 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 +15931 -15553
- package/dist/rspack.d.cts +42 -5
- package/dist/rspack.d.ts +42 -5
- package/dist/rspack.js +15930 -15546
- 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 +15944 -15582
- package/dist/vite.d.cts +2 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.js +15941 -15574
- package/dist/webpack.cjs +15981 -15553
- package/dist/webpack.d.cts +32 -4
- package/dist/webpack.d.ts +32 -4
- package/dist/webpack.js +15980 -15546
- package/package.json +2 -2
- package/dist/chunk-66OZBBSP.js +0 -108
package/dist/rspack.d.cts
CHANGED
|
@@ -1,8 +1,44 @@
|
|
|
1
1
|
import { RspackPluginInstance, Compiler } from '@rspack/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @lark.js/mvc Vite Plugin for Template Compilation
|
|
5
|
+
*
|
|
6
|
+
* Compiles .html template files using @lark.js/mvc template syntax
|
|
7
|
+
* into JS function modules at build/dev time.
|
|
8
|
+
*
|
|
9
|
+
* 0 configuration — just add the plugin and it works.
|
|
10
|
+
* - All template operators: = (escape), ! (raw), @ (ref lookup), : (binding)
|
|
11
|
+
* - @event attribute processing with $g prefix
|
|
12
|
+
* - $eu (URI encoding), $eq (quote encoding), $i (reference lookup)
|
|
13
|
+
* - Debug mode with line tracking
|
|
14
|
+
* - View ID injection
|
|
15
|
+
* - Auto variable extraction
|
|
16
|
+
*
|
|
17
|
+
* Usage in vite.config.ts:
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { larkMvcPlugin } from '@lark.js/mvc/vite';
|
|
20
|
+
*
|
|
21
|
+
* export default defineConfig({
|
|
22
|
+
* plugins: [larkMvcPlugin()],
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
interface LarkMvcVitePluginOptions {
|
|
28
|
+
/** Enable debug mode with line tracking (default: false) */
|
|
29
|
+
debug?: boolean;
|
|
30
|
+
/** Enable virtual DOM output (default: false) */
|
|
31
|
+
virtualDom?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type LarkMvcWebpackLoaderOptions = LarkMvcVitePluginOptions;
|
|
35
|
+
/** Plugin options */
|
|
36
|
+
interface LarkMvcWebpackPluginOptions extends LarkMvcWebpackLoaderOptions {
|
|
37
|
+
/** File extension to match (default: /\.html$/) */
|
|
38
|
+
test?: RegExp;
|
|
39
|
+
/** Exclude pattern (default: /node_modules/) */
|
|
40
|
+
exclude?: RegExp;
|
|
41
|
+
}
|
|
6
42
|
|
|
7
43
|
/**
|
|
8
44
|
* @lark.js/mvc Rspack Integration for Template Compilation
|
|
@@ -104,4 +140,5 @@ declare class LarkMvcPlugin implements RspackPluginInstance {
|
|
|
104
140
|
apply(compiler: Compiler): void;
|
|
105
141
|
}
|
|
106
142
|
|
|
107
|
-
export { LarkMvcPlugin,
|
|
143
|
+
export { LarkMvcPlugin, larkMvcLoader as default, larkMvcLoader };
|
|
144
|
+
export type { LarkMvcWebpackLoaderOptions, LarkMvcWebpackPluginOptions };
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,8 +1,44 @@
|
|
|
1
1
|
import { RspackPluginInstance, Compiler } from '@rspack/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @lark.js/mvc Vite Plugin for Template Compilation
|
|
5
|
+
*
|
|
6
|
+
* Compiles .html template files using @lark.js/mvc template syntax
|
|
7
|
+
* into JS function modules at build/dev time.
|
|
8
|
+
*
|
|
9
|
+
* 0 configuration — just add the plugin and it works.
|
|
10
|
+
* - All template operators: = (escape), ! (raw), @ (ref lookup), : (binding)
|
|
11
|
+
* - @event attribute processing with $g prefix
|
|
12
|
+
* - $eu (URI encoding), $eq (quote encoding), $i (reference lookup)
|
|
13
|
+
* - Debug mode with line tracking
|
|
14
|
+
* - View ID injection
|
|
15
|
+
* - Auto variable extraction
|
|
16
|
+
*
|
|
17
|
+
* Usage in vite.config.ts:
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { larkMvcPlugin } from '@lark.js/mvc/vite';
|
|
20
|
+
*
|
|
21
|
+
* export default defineConfig({
|
|
22
|
+
* plugins: [larkMvcPlugin()],
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
interface LarkMvcVitePluginOptions {
|
|
28
|
+
/** Enable debug mode with line tracking (default: false) */
|
|
29
|
+
debug?: boolean;
|
|
30
|
+
/** Enable virtual DOM output (default: false) */
|
|
31
|
+
virtualDom?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type LarkMvcWebpackLoaderOptions = LarkMvcVitePluginOptions;
|
|
35
|
+
/** Plugin options */
|
|
36
|
+
interface LarkMvcWebpackPluginOptions extends LarkMvcWebpackLoaderOptions {
|
|
37
|
+
/** File extension to match (default: /\.html$/) */
|
|
38
|
+
test?: RegExp;
|
|
39
|
+
/** Exclude pattern (default: /node_modules/) */
|
|
40
|
+
exclude?: RegExp;
|
|
41
|
+
}
|
|
6
42
|
|
|
7
43
|
/**
|
|
8
44
|
* @lark.js/mvc Rspack Integration for Template Compilation
|
|
@@ -104,4 +140,5 @@ declare class LarkMvcPlugin implements RspackPluginInstance {
|
|
|
104
140
|
apply(compiler: Compiler): void;
|
|
105
141
|
}
|
|
106
142
|
|
|
107
|
-
export { LarkMvcPlugin,
|
|
143
|
+
export { LarkMvcPlugin, larkMvcLoader as default, larkMvcLoader };
|
|
144
|
+
export type { LarkMvcWebpackLoaderOptions, LarkMvcWebpackPluginOptions };
|