@incremark/devtools 0.2.6 → 0.3.0

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/index.d.ts CHANGED
@@ -2,9 +2,7 @@ import { ParsedBlock, Root } from '@incremark/core';
2
2
 
3
3
  interface DevToolsState {
4
4
  /** 所有块 */
5
- blocks: Array<ParsedBlock & {
6
- stableId: string;
7
- }>;
5
+ blocks: ParsedBlock[];
8
6
  /** 已完成的块 */
9
7
  completedBlocks: ParsedBlock[];
10
8
  /** 待处理的块 */
package/dist/index.js CHANGED
@@ -703,8 +703,8 @@ function mountDevTools(options) {
703
703
  }
704
704
  return (state) => {
705
705
  const blocks = [
706
- ...state.completedBlocks.map((b) => ({ ...b, stableId: b.id })),
707
- ...state.pendingBlocks.map((b, i) => ({ ...b, stableId: `pending-${i}` }))
706
+ ...state.completedBlocks,
707
+ ...state.pendingBlocks
708
708
  ];
709
709
  devtools.update({
710
710
  blocks,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incremark/devtools",
3
- "version": "0.2.6",
3
+ "version": "0.3.0",
4
4
  "license": "MIT",
5
5
  "description": "Incremark DevTools - Framework-agnostic debugging panel",
6
6
  "type": "module",
@@ -17,12 +17,20 @@
17
17
  "dist"
18
18
  ],
19
19
  "peerDependencies": {
20
- "@incremark/core": "0.2.6"
20
+ "@incremark/core": "0.3.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "tsup": "^8.0.0",
24
24
  "typescript": "^5.3.0"
25
25
  },
26
+ "keywords": [
27
+ "incremark",
28
+ "devtools",
29
+ "debugging",
30
+ "markdown",
31
+ "developer-tools",
32
+ "streaming"
33
+ ],
26
34
  "repository": {
27
35
  "type": "git",
28
36
  "url": "https://github.com/kingshuaishuai/incremark.git",