@vobs/vobs 1.4.0 → 1.4.1

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/jsx.d.ts CHANGED
@@ -57,6 +57,11 @@ declare global {
57
57
  namespace JSX {
58
58
  type Element = VobsNode
59
59
  interface ElementChildrenAttribute { children: {} }
60
+ // 组件 props 注入可选 key:编译器在列表 map 中提取 key 生成 keyOf(keyed 调和),
61
+ // key 不传入组件 props,仅供类型层面放行(IntrinsicAttributes 合并进所有 JSX 元素)。
62
+ interface IntrinsicAttributes {
63
+ key?: string | number
64
+ }
60
65
  interface IntrinsicElements {
61
66
  a: VobsHTMLAttributes
62
67
  abbr: VobsHTMLAttributes
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/vobsjs/vobs.git"
13
13
  },
14
- "version": "1.4.0",
14
+ "version": "1.4.1",
15
15
  "publishConfig": {
16
16
  "access": "public"
17
17
  },
@@ -48,8 +48,8 @@
48
48
  "./source/*": "./src/*"
49
49
  },
50
50
  "dependencies": {
51
- "@vobs/dom": "1.4.0",
52
- "@vobs/reactivity": "1.4.0",
53
- "@vobs/runtime": "1.4.0"
51
+ "@vobs/runtime": "1.4.1",
52
+ "@vobs/reactivity": "1.4.1",
53
+ "@vobs/dom": "1.4.1"
54
54
  }
55
55
  }
package/src/jsx.d.ts CHANGED
@@ -57,6 +57,11 @@ declare global {
57
57
  namespace JSX {
58
58
  type Element = VobsNode
59
59
  interface ElementChildrenAttribute { children: {} }
60
+ // 组件 props 注入可选 key:编译器在列表 map 中提取 key 生成 keyOf(keyed 调和),
61
+ // key 不传入组件 props,仅供类型层面放行(IntrinsicAttributes 合并进所有 JSX 元素)。
62
+ interface IntrinsicAttributes {
63
+ key?: string | number
64
+ }
60
65
  interface IntrinsicElements {
61
66
  a: VobsHTMLAttributes
62
67
  abbr: VobsHTMLAttributes