@incremark/vue 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.
@@ -0,0 +1,25 @@
1
+ import { Component } from "vue";
2
+ import { UseIncremarkOptions } from "./composables";
3
+ export type ComponentMap = Partial<Record<string, Component>>;
4
+ /**
5
+ * 代码块配置
6
+ */
7
+ export interface CodeBlockConfig {
8
+ /** 是否从一开始就接管渲染,而不是等到 completed 状态 */
9
+ takeOver?: boolean;
10
+ }
11
+ export interface IncremarkContentProps {
12
+ stream?: () => AsyncGenerator<string>;
13
+ content?: string;
14
+ components?: ComponentMap;
15
+ /** 自定义容器组件映射,key 为容器名称(如 'warning', 'info') */
16
+ customContainers?: Record<string, Component>;
17
+ /** 自定义代码块组件映射,key 为代码语言名称(如 'echart', 'mermaid') */
18
+ customCodeBlocks?: Record<string, Component>;
19
+ /** 代码块配置映射,key 为代码语言名称 */
20
+ codeBlockConfigs?: Record<string, CodeBlockConfig>;
21
+ isFinished?: boolean;
22
+ incremarkOptions?: UseIncremarkOptions;
23
+ pendingClass?: string;
24
+ showBlockStatus?: boolean;
25
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@incremark/vue",
3
- "version": "0.2.6",
4
- "description": "Incremark Vue 3 集成",
3
+ "version": "0.3.0",
4
+ "description": "High-performance streaming markdown renderer for Vue 3 ecosystem.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -18,10 +18,11 @@
18
18
  ],
19
19
  "dependencies": {
20
20
  "shiki": "^3.20.0",
21
- "@incremark/devtools": "0.2.6",
22
- "@incremark/theme": "0.2.6",
23
- "@incremark/core": "0.2.6",
24
- "@incremark/shared": "0.2.6"
21
+ "@incremark/devtools": "0.3.0",
22
+ "@incremark/core": "0.3.0",
23
+ "@incremark/shared": "0.3.0",
24
+ "@incremark/icons": "0.3.0",
25
+ "@incremark/theme": "0.3.0"
25
26
  },
26
27
  "peerDependencies": {
27
28
  "vue": "^3.3.0",
@@ -50,7 +51,12 @@
50
51
  "vue",
51
52
  "vue3",
52
53
  "streaming",
53
- "ai"
54
+ "ai",
55
+ "chatgpt",
56
+ "llm",
57
+ "typewriter",
58
+ "i18n",
59
+ "a11y"
54
60
  ],
55
61
  "license": "MIT",
56
62
  "repository": {