@lark.js/mvc 0.0.5 → 0.0.6

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/dist/runtime.cjs CHANGED
@@ -50,7 +50,7 @@ var encUri = (v) => encodeURIComponent(strSafe(v)).replace(URI_ENT_REGEXP, (m) =
50
50
  var QUOTE_REGEXP = /['"\\]/g;
51
51
  var encQuote = (v) => strSafe(v).replace(QUOTE_REGEXP, "\\$&");
52
52
  var refFn = (ref, value, key) => {
53
- const SPLITTER = "";
53
+ const SPLITTER = String.fromCharCode(30);
54
54
  const counter = ref[SPLITTER];
55
55
  for (let i = counter; --i; ) {
56
56
  key = SPLITTER + i;
package/dist/runtime.js CHANGED
@@ -22,7 +22,7 @@ var encUri = (v) => encodeURIComponent(strSafe(v)).replace(URI_ENT_REGEXP, (m) =
22
22
  var QUOTE_REGEXP = /['"\\]/g;
23
23
  var encQuote = (v) => strSafe(v).replace(QUOTE_REGEXP, "\\$&");
24
24
  var refFn = (ref, value, key) => {
25
- const SPLITTER = "";
25
+ const SPLITTER = String.fromCharCode(30);
26
26
  const counter = ref[SPLITTER];
27
27
  for (let i = counter; --i; ) {
28
28
  key = SPLITTER + i;
package/dist/vite.cjs CHANGED
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js
33
+ // ../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js
34
34
  var require_lib = __commonJS({
35
- "../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js"(exports2) {
35
+ "../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js"(exports2) {
36
36
  "use strict";
37
37
  Object.defineProperty(exports2, "__esModule", {
38
38
  value: true
@@ -14617,8 +14617,8 @@ var import_fs = __toESM(require("fs"), 1);
14617
14617
 
14618
14618
  // src/compiler.ts
14619
14619
  var import_parser = __toESM(require_lib(), 1);
14620
- var SPLITTER = "";
14621
- var VIEW_ID_PLACEHOLDER = "";
14620
+ var SPLITTER = String.fromCharCode(30);
14621
+ var VIEW_ID_PLACEHOLDER = String.fromCharCode(31);
14622
14622
  function jsObjectToUrlParams(paramsStr) {
14623
14623
  const trimmed = paramsStr.trim();
14624
14624
  if (!/^[{[]/.test(trimmed) && /=/.test(trimmed)) {
@@ -14678,7 +14678,7 @@ function addLineMarkers(source) {
14678
14678
  if (parts.length > 1) {
14679
14679
  const reconstructed = parts.map((part, i) => {
14680
14680
  if (i === 0) return part;
14681
- return openTag + SPLITTER + ++lineNo;
14681
+ return openTag + SPLITTER + ++lineNo + part;
14682
14682
  }).join("");
14683
14683
  result.push(reconstructed);
14684
14684
  } else {
@@ -15071,7 +15071,7 @@ function extractGlobalVars(source) {
15071
15071
  const htmlStore = {};
15072
15072
  let htmlIndex = 0;
15073
15073
  let lastIndex = 0;
15074
- const htmlKey = "";
15074
+ const htmlKey = String.fromCharCode(5);
15075
15075
  template.replace(
15076
15076
  templateCmdRegExp,
15077
15077
  (match, operate, content, offset) => {
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  compileTemplate,
3
3
  extractGlobalVars
4
- } from "./chunk-IIIY575B.js";
4
+ } from "./chunk-3HSA7OHB.js";
5
5
 
6
6
  // src/vite.ts
7
7
  import path from "path";
package/dist/webpack.cjs CHANGED
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js
33
+ // ../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js
34
34
  var require_lib = __commonJS({
35
- "../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js"(exports2) {
35
+ "../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js"(exports2) {
36
36
  "use strict";
37
37
  Object.defineProperty(exports2, "__esModule", {
38
38
  value: true
@@ -14615,8 +14615,8 @@ module.exports = __toCommonJS(webpack_exports);
14615
14615
 
14616
14616
  // src/compiler.ts
14617
14617
  var import_parser = __toESM(require_lib(), 1);
14618
- var SPLITTER = "";
14619
- var VIEW_ID_PLACEHOLDER = "";
14618
+ var SPLITTER = String.fromCharCode(30);
14619
+ var VIEW_ID_PLACEHOLDER = String.fromCharCode(31);
14620
14620
  function jsObjectToUrlParams(paramsStr) {
14621
14621
  const trimmed = paramsStr.trim();
14622
14622
  if (!/^[{[]/.test(trimmed) && /=/.test(trimmed)) {
@@ -14676,7 +14676,7 @@ function addLineMarkers(source) {
14676
14676
  if (parts.length > 1) {
14677
14677
  const reconstructed = parts.map((part, i) => {
14678
14678
  if (i === 0) return part;
14679
- return openTag + SPLITTER + ++lineNo;
14679
+ return openTag + SPLITTER + ++lineNo + part;
14680
14680
  }).join("");
14681
14681
  result.push(reconstructed);
14682
14682
  } else {
@@ -15069,7 +15069,7 @@ function extractGlobalVars(source) {
15069
15069
  const htmlStore = {};
15070
15070
  let htmlIndex = 0;
15071
15071
  let lastIndex = 0;
15072
- const htmlKey = "";
15072
+ const htmlKey = String.fromCharCode(5);
15073
15073
  template.replace(
15074
15074
  templateCmdRegExp,
15075
15075
  (match, operate, content, offset) => {
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  compileTemplate,
3
3
  extractGlobalVars
4
- } from "./chunk-IIIY575B.js";
4
+ } from "./chunk-3HSA7OHB.js";
5
5
 
6
6
  // src/webpack.ts
7
7
  function larkMvcLoader(source) {
package/package.json CHANGED
@@ -1,12 +1,23 @@
1
1
  {
2
2
  "name": "@lark.js/mvc",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "@lark.js/mvc - TypeScript MVC framework",
5
+ "keywords": [
6
+ "framework",
7
+ "lark",
8
+ "mvc"
9
+ ],
10
+ "license": "ISC",
11
+ "author": "https://github.com/hangtiancheng",
5
12
  "files": [
6
13
  "dist",
7
14
  "src/client.d.ts",
8
15
  "README.md"
9
16
  ],
17
+ "type": "module",
18
+ "main": "dist/index.cjs",
19
+ "module": "dist/index.js",
20
+ "types": "dist/index.d.ts",
10
21
  "exports": {
11
22
  ".": {
12
23
  "import": {
@@ -49,9 +60,6 @@
49
60
  }
50
61
  }
51
62
  },
52
- "main": "dist/index.cjs",
53
- "module": "dist/index.js",
54
- "types": "dist/index.d.ts",
55
63
  "scripts": {
56
64
  "prepublish": "pnpm build",
57
65
  "build": "pnpm build:tsup",
@@ -64,37 +72,30 @@
64
72
  "test:watch": "vitest",
65
73
  "test:coverage": "vitest run --coverage"
66
74
  },
67
- "keywords": [
68
- "lark",
69
- "mvc",
70
- "framework"
71
- ],
72
- "author": "https://github.com/hangtiancheng",
73
- "license": "ISC",
74
- "packageManager": "pnpm@10.33.0",
75
+ "dependencies": {
76
+ "@babel/parser": "^7.29.7",
77
+ "@babel/types": "^7.29.7"
78
+ },
75
79
  "devDependencies": {
76
80
  "@rollup/plugin-commonjs": "^29.0.3",
77
81
  "@rollup/plugin-node-resolve": "^16.0.3",
78
82
  "@rollup/plugin-typescript": "^12.3.0",
83
+ "@types/node": "^25.9.2",
79
84
  "@vitest/coverage-v8": "4.1.6",
80
- "rollup": "^4.61.0",
85
+ "rollup": "^4.61.1",
81
86
  "rollup-plugin-dts": "^6.4.1",
82
87
  "tsup": "^8.5.1",
83
88
  "typescript": "^5.9.3",
84
89
  "vite": "^8.0.16",
85
90
  "vitest": "^4.1.8"
86
91
  },
92
+ "peerDependencies": {
93
+ "vite": "^8.0.14"
94
+ },
87
95
  "lint-staged": {
88
96
  "*.{json,jsonc,js,cjs,mjs,jsx,ts,cts,mts,tsx,html,vue,css,scss,md,mdx}": [
89
97
  "pnpm format"
90
98
  ]
91
99
  },
92
- "type": "module",
93
- "peerDependencies": {
94
- "vite": "^8.0.14"
95
- },
96
- "dependencies": {
97
- "@babel/parser": "^7.29.7",
98
- "@babel/types": "^7.29.7"
99
- }
100
+ "packageManager": "pnpm@10.33.0"
100
101
  }
package/src/client.d.ts CHANGED
@@ -3,6 +3,7 @@ import type {
3
3
  FrameworkInterface,
4
4
  StateInterface,
5
5
  RouterInterface,
6
+ CrossSiteConfig,
6
7
  } from "./types";
7
8
  import type { Frame } from "./frame";
8
9
  import type { View } from "./view";