@lark.js/mvc 0.0.15 → 0.0.16

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.
Files changed (60) hide show
  1. package/README.md +324 -215
  2. package/dist/chunk-OGPBFCIK.js +105 -0
  3. package/dist/client.d.cts +63 -0
  4. package/dist/client.d.ts +10 -34
  5. package/dist/compiler.cjs +15534 -15854
  6. package/dist/compiler.js +15519 -15851
  7. package/dist/devtool.cjs +2617 -4152
  8. package/dist/devtool.d.cts +1 -2
  9. package/dist/devtool.d.ts +1 -2
  10. package/dist/devtool.js +2543 -4159
  11. package/dist/index.cjs +4128 -6008
  12. package/dist/index.d.cts +568 -1288
  13. package/dist/index.d.ts +568 -1288
  14. package/dist/index.js +4058 -5976
  15. package/dist/rspack.cjs +15648 -15935
  16. package/dist/rspack.d.cts +5 -42
  17. package/dist/rspack.d.ts +5 -42
  18. package/dist/rspack.js +15641 -15934
  19. package/dist/runtime.cjs +79 -79
  20. package/dist/runtime.js +19 -85
  21. package/dist/vite.cjs +15841 -15957
  22. package/dist/vite.d.cts +1 -2
  23. package/dist/vite.d.ts +1 -2
  24. package/dist/vite.js +15834 -15955
  25. package/dist/webpack.cjs +15648 -15985
  26. package/dist/webpack.d.cts +4 -32
  27. package/dist/webpack.d.ts +4 -32
  28. package/dist/webpack.js +15641 -15984
  29. package/package.json +3 -4
  30. package/dist/apply-style.d.ts +0 -9
  31. package/dist/cache.d.ts +0 -69
  32. package/dist/common.d.ts +0 -64
  33. package/dist/compiler/compile-template.d.ts +0 -16
  34. package/dist/compiler/compile-to-vdom-function.d.ts +0 -13
  35. package/dist/compiler/extract-global-vars.d.ts +0 -17
  36. package/dist/compiler/template-syntax.d.ts +0 -61
  37. package/dist/cross-site.d.ts +0 -29
  38. package/dist/dom.d.ts +0 -45
  39. package/dist/event-delegator.d.ts +0 -28
  40. package/dist/event-emitter.d.ts +0 -38
  41. package/dist/frame.d.ts +0 -143
  42. package/dist/framework.d.ts +0 -9
  43. package/dist/hmr.d.ts +0 -53
  44. package/dist/index.amd.js +0 -6285
  45. package/dist/index.umd.js +0 -6272
  46. package/dist/mark.d.ts +0 -26
  47. package/dist/module-loader.d.ts +0 -20
  48. package/dist/router.d.ts +0 -14
  49. package/dist/runtime.amd.js +0 -94
  50. package/dist/runtime.umd.js +0 -98
  51. package/dist/service.d.ts +0 -173
  52. package/dist/state.d.ts +0 -8
  53. package/dist/store.d.ts +0 -60
  54. package/dist/types.d.ts +0 -1259
  55. package/dist/updater.d.ts +0 -90
  56. package/dist/url-state.d.ts +0 -32
  57. package/dist/utils.d.ts +0 -90
  58. package/dist/vdom.d.ts +0 -45
  59. package/dist/view-registry.d.ts +0 -20
  60. package/dist/view.d.ts +0 -214
@@ -1,33 +1,6 @@
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
- }
1
+ import { LarkMvcVitePluginOptions } from './vite.cjs';
2
+ import 'vite';
3
+ import 'vite7';
31
4
 
32
5
  type LarkMvcWebpackLoaderOptions = LarkMvcVitePluginOptions;
33
6
  /** Webpack loader context */
@@ -92,5 +65,4 @@ declare class LarkMvcPlugin {
92
65
  }): void;
93
66
  }
94
67
 
95
- export { LarkMvcPlugin, larkMvcLoader as default, larkMvcLoader };
96
- export type { LarkMvcWebpackLoaderOptions, LarkMvcWebpackPluginOptions };
68
+ export { LarkMvcPlugin, type LarkMvcWebpackLoaderOptions, type LarkMvcWebpackPluginOptions, larkMvcLoader as default, larkMvcLoader };
package/dist/webpack.d.ts CHANGED
@@ -1,33 +1,6 @@
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
- }
1
+ import { LarkMvcVitePluginOptions } from './vite.js';
2
+ import 'vite';
3
+ import 'vite7';
31
4
 
32
5
  type LarkMvcWebpackLoaderOptions = LarkMvcVitePluginOptions;
33
6
  /** Webpack loader context */
@@ -92,5 +65,4 @@ declare class LarkMvcPlugin {
92
65
  }): void;
93
66
  }
94
67
 
95
- export { LarkMvcPlugin, larkMvcLoader as default, larkMvcLoader };
96
- export type { LarkMvcWebpackLoaderOptions, LarkMvcWebpackPluginOptions };
68
+ export { LarkMvcPlugin, type LarkMvcWebpackLoaderOptions, type LarkMvcWebpackPluginOptions, larkMvcLoader as default, larkMvcLoader };