@incremark/vue 0.3.2 → 0.3.4

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/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Component } from "vue";
2
2
  import { UseIncremarkOptions } from "./composables";
3
+ import type { IncremarkDevTools } from "@incremark/devtools";
3
4
  export type ComponentMap = Partial<Record<string, Component>>;
4
5
  /**
5
6
  * 代码块配置
@@ -22,4 +23,10 @@ export interface IncremarkContentProps {
22
23
  incremarkOptions?: UseIncremarkOptions;
23
24
  pendingClass?: string;
24
25
  showBlockStatus?: boolean;
26
+ /** DevTools 实例,传入后组件会自动注册 parser */
27
+ devtools?: IncremarkDevTools;
28
+ /** DevTools 中显示的 parser ID,默认自动生成 */
29
+ devtoolsId?: string;
30
+ /** DevTools 中显示的 parser 标签,默认使用 ID */
31
+ devtoolsLabel?: string;
25
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incremark/vue",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "High-performance streaming markdown renderer for Vue 3 ecosystem.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,11 +20,11 @@
20
20
  "@antfu/utils": "^9.3.0",
21
21
  "shiki": "^3.20.0",
22
22
  "shiki-stream": "^0.1.4",
23
- "@incremark/core": "0.3.2",
24
- "@incremark/devtools": "0.3.2",
25
- "@incremark/icons": "0.3.2",
26
- "@incremark/shared": "0.3.2",
27
- "@incremark/theme": "0.3.2"
23
+ "@incremark/core": "0.3.4",
24
+ "@incremark/icons": "0.3.4",
25
+ "@incremark/shared": "0.3.4",
26
+ "@incremark/devtools": "0.3.4",
27
+ "@incremark/theme": "0.3.4"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "katex": "^0.16.0",
@@ -1,18 +0,0 @@
1
- import { type DevToolsOptions } from '@incremark/devtools';
2
- import type { UseIncremarkReturn } from './useIncremark';
3
- export interface UseDevToolsOptions extends DevToolsOptions {
4
- }
5
- /**
6
- * Vue 3 DevTools 一行接入
7
- *
8
- * @example
9
- * ```vue
10
- * <script setup>
11
- * import { useIncremark, useDevTools } from '@incremark/vue'
12
- *
13
- * const incremark = useIncremark()
14
- * useDevTools(incremark) // 就这一行!
15
- * </script>
16
- * ```
17
- */
18
- export declare function useDevTools(incremark: UseIncremarkReturn, options?: UseDevToolsOptions): import("@incremark/devtools").IncremarkDevTools;