@vtj/parser 0.12.7 → 0.12.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/parser",
3
3
  "private": false,
4
- "version": "0.12.7",
4
+ "version": "0.12.9",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -28,9 +28,9 @@
28
28
  "@vue/compiler-sfc": "~3.5.13",
29
29
  "htmlparser2": "~10.0.0",
30
30
  "postcss": "~8.5.0",
31
- "@vtj/coder": "~0.12.7",
32
31
  "@vtj/base": "~0.12.0",
33
- "@vtj/core": "~0.12.7"
32
+ "@vtj/coder": "~0.12.9",
33
+ "@vtj/core": "~0.12.9"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@vtj/cli": "~0.12.1"
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/parser
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.12.6
5
+ * @version 0.12.8
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.12.6";
8
+ export declare const version = "0.12.8";
@@ -1,6 +1,7 @@
1
- import { NodeSchema, BlockSlot, JSFunction } from '@vtj/core';
1
+ import { NodeSchema, BlockSlot, JSFunction, PlatformType } from '@vtj/core';
2
2
  import { CSSRules } from './style';
3
3
  export interface ParseTemplateOptions {
4
+ platform: PlatformType;
4
5
  handlers?: Record<string, JSFunction>;
5
6
  styles?: CSSRules;
6
7
  }
@@ -1,5 +1,6 @@
1
- import { JSExpression, JSFunction } from '@vtj/core';
1
+ import { JSExpression, JSFunction, PlatformType } from '@vtj/core';
2
2
  export interface ExpressionOptions {
3
+ platform: PlatformType;
3
4
  context: Record<string, Set<string>>;
4
5
  computed: string[];
5
6
  libs: Record<string, string>;
@@ -12,5 +13,8 @@ export declare function getJSFunction(content: string): JSFunction;
12
13
  export declare const LIFE_CYCLES_LIST: string[];
13
14
  export declare const HTML_TAGS: string[];
14
15
  export declare const BUILD_IN_TAGS: string[];
15
- export declare function formatTagName(tag: string): string;
16
+ export declare const UNI_TAGS: string[];
17
+ export declare function isUniTags(tag: string, platform?: PlatformType): boolean;
18
+ export declare function formatTagName(tag: string, platform?: PlatformType): string;
16
19
  export declare function isScss(source: string): boolean;
20
+ export declare function styleToJson(style: string): Record<string, string>;