@incremark/solid 0.3.3

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.
Files changed (82) hide show
  1. package/LICENSE +22 -0
  2. package/README.en.md +278 -0
  3. package/README.md +278 -0
  4. package/dist/components/AutoScrollContainer.d.ts +17 -0
  5. package/dist/components/AutoScrollContainer.d.ts.map +1 -0
  6. package/dist/components/CachedCodeRenderer.d.ts +12 -0
  7. package/dist/components/CachedCodeRenderer.d.ts.map +1 -0
  8. package/dist/components/ConfigProvider.d.ts +17 -0
  9. package/dist/components/ConfigProvider.d.ts.map +1 -0
  10. package/dist/components/Incremark.d.ts +35 -0
  11. package/dist/components/Incremark.d.ts.map +1 -0
  12. package/dist/components/IncremarkBlockquote.d.ts +7 -0
  13. package/dist/components/IncremarkBlockquote.d.ts.map +1 -0
  14. package/dist/components/IncremarkCode.d.ts +26 -0
  15. package/dist/components/IncremarkCode.d.ts.map +1 -0
  16. package/dist/components/IncremarkCodeDefault.d.ts +15 -0
  17. package/dist/components/IncremarkCodeDefault.d.ts.map +1 -0
  18. package/dist/components/IncremarkCodeMermaid.d.ts +14 -0
  19. package/dist/components/IncremarkCodeMermaid.d.ts.map +1 -0
  20. package/dist/components/IncremarkContainer.d.ts +22 -0
  21. package/dist/components/IncremarkContainer.d.ts.map +1 -0
  22. package/dist/components/IncremarkContent.d.ts +10 -0
  23. package/dist/components/IncremarkContent.d.ts.map +1 -0
  24. package/dist/components/IncremarkDefault.d.ts +11 -0
  25. package/dist/components/IncremarkDefault.d.ts.map +1 -0
  26. package/dist/components/IncremarkFootnotes.d.ts +10 -0
  27. package/dist/components/IncremarkFootnotes.d.ts.map +1 -0
  28. package/dist/components/IncremarkHeading.d.ts +7 -0
  29. package/dist/components/IncremarkHeading.d.ts.map +1 -0
  30. package/dist/components/IncremarkHtmlElement.d.ts +26 -0
  31. package/dist/components/IncremarkHtmlElement.d.ts.map +1 -0
  32. package/dist/components/IncremarkInline.d.ts +7 -0
  33. package/dist/components/IncremarkInline.d.ts.map +1 -0
  34. package/dist/components/IncremarkList.d.ts +7 -0
  35. package/dist/components/IncremarkList.d.ts.map +1 -0
  36. package/dist/components/IncremarkMath.d.ts +16 -0
  37. package/dist/components/IncremarkMath.d.ts.map +1 -0
  38. package/dist/components/IncremarkParagraph.d.ts +7 -0
  39. package/dist/components/IncremarkParagraph.d.ts.map +1 -0
  40. package/dist/components/IncremarkRenderer.d.ts +20 -0
  41. package/dist/components/IncremarkRenderer.d.ts.map +1 -0
  42. package/dist/components/IncremarkTable.d.ts +7 -0
  43. package/dist/components/IncremarkTable.d.ts.map +1 -0
  44. package/dist/components/IncremarkThematicBreak.d.ts +7 -0
  45. package/dist/components/IncremarkThematicBreak.d.ts.map +1 -0
  46. package/dist/components/SvgIcon.d.ts +14 -0
  47. package/dist/components/SvgIcon.d.ts.map +1 -0
  48. package/dist/components/ThemeProvider.d.ts +17 -0
  49. package/dist/components/ThemeProvider.d.ts.map +1 -0
  50. package/dist/components/index.d.ts +47 -0
  51. package/dist/components/index.d.ts.map +1 -0
  52. package/dist/composables/index.d.ts +10 -0
  53. package/dist/composables/index.d.ts.map +1 -0
  54. package/dist/composables/useBlockTransformer.d.ts +33 -0
  55. package/dist/composables/useBlockTransformer.d.ts.map +1 -0
  56. package/dist/composables/useDefinationsContext.d.ts +7 -0
  57. package/dist/composables/useDefinationsContext.d.ts.map +1 -0
  58. package/dist/composables/useDevTools.d.ts +35 -0
  59. package/dist/composables/useDevTools.d.ts.map +1 -0
  60. package/dist/composables/useIncremark.d.ts +84 -0
  61. package/dist/composables/useIncremark.d.ts.map +1 -0
  62. package/dist/composables/useLocale.d.ts +2 -0
  63. package/dist/composables/useLocale.d.ts.map +1 -0
  64. package/dist/composables/useProvideDefinations.d.ts +36 -0
  65. package/dist/composables/useProvideDefinations.d.ts.map +1 -0
  66. package/dist/composables/useShiki.d.ts +71 -0
  67. package/dist/composables/useShiki.d.ts.map +1 -0
  68. package/dist/composables/useStreamRenderer.d.ts +25 -0
  69. package/dist/composables/useStreamRenderer.d.ts.map +1 -0
  70. package/dist/composables/useTypewriter.d.ts +48 -0
  71. package/dist/composables/useTypewriter.d.ts.map +1 -0
  72. package/dist/index.d.ts +17 -0
  73. package/dist/index.d.ts.map +1 -0
  74. package/dist/index.js +2123 -0
  75. package/dist/index.js.map +1 -0
  76. package/dist/types.d.ts +27 -0
  77. package/dist/types.d.ts.map +1 -0
  78. package/dist/utils/animatedChunks.d.ts +20 -0
  79. package/dist/utils/animatedChunks.d.ts.map +1 -0
  80. package/dist/utils/cursor.d.ts +9 -0
  81. package/dist/utils/cursor.d.ts.map +1 -0
  82. package/package.json +74 -0
@@ -0,0 +1,36 @@
1
+ import { type Accessor, type Setter } from 'solid-js';
2
+ import type { Definition, FootnoteDefinition } from 'mdast';
3
+ export interface DefinationsContextValue {
4
+ definations: Accessor<Record<string, Definition>>;
5
+ setDefinations: Setter<Record<string, Definition>>;
6
+ footnoteDefinitions: Accessor<Record<string, FootnoteDefinition>>;
7
+ setFootnoteDefinitions: Setter<Record<string, FootnoteDefinition>>;
8
+ footnoteReferenceOrder: Accessor<string[]>;
9
+ setFootnoteReferenceOrder: Setter<string[]>;
10
+ clearAllDefinations: () => void;
11
+ }
12
+ export declare const DefinationsContext: import("solid-js").Context<DefinationsContextValue | undefined>;
13
+ export interface DefinationsProviderProps {
14
+ children?: any;
15
+ value: DefinationsContextValue;
16
+ }
17
+ export declare function DefinationsProvider(props: DefinationsProviderProps): import("solid-js").JSX.Element;
18
+ /**
19
+ * Provides definitions state management
20
+ * Call this in a composable to get setter functions
21
+ */
22
+ export declare function useProvideDefinations(): {
23
+ definations: Accessor<Record<string, Definition>>;
24
+ setDefinations: Setter<Record<string, Definition>>;
25
+ footnoteDefinitions: Accessor<Record<string, FootnoteDefinition>>;
26
+ setFootnoteDefinitions: Setter<Record<string, FootnoteDefinition>>;
27
+ footnoteReferenceOrder: Accessor<string[]>;
28
+ setFootnoteReferenceOrder: Setter<string[]>;
29
+ clearDefinations: () => void;
30
+ clearFootnoteDefinitions: () => void;
31
+ clearFootnoteReferenceOrder: () => void;
32
+ clearAllDefinations: () => void;
33
+ DefinationsProvider: typeof DefinationsProvider;
34
+ contextValue: DefinationsContextValue;
35
+ };
36
+ //# sourceMappingURL=useProvideDefinations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useProvideDefinations.d.ts","sourceRoot":"","sources":["../../src/composables/useProvideDefinations.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAgB,KAAK,MAAM,EAAE,MAAM,UAAU,CAAA;AAEnE,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAE3D,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAA;IACjD,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAA;IAClD,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAA;IACjE,sBAAsB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAA;IAClE,sBAAsB,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;IAC1C,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAA;IAC3C,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED,eAAO,MAAM,kBAAkB,iEAA2C,CAAA;AAE1E,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,KAAK,EAAE,uBAAuB,CAAA;CAC/B;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,kCAMlE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB;;;;;;;;;;;;;EA+CpC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Shiki Highlighter 单例管理器
3
+ *
4
+ * 避免重复创建 Shiki 实例,所有组件共享同一个 highlighter
5
+ */
6
+ import { type Accessor } from 'solid-js';
7
+ import type { HighlighterGeneric, BundledLanguage, BundledTheme } from 'shiki';
8
+ interface HighlighterInfo {
9
+ highlighter: HighlighterGeneric<BundledLanguage, BundledTheme>;
10
+ loadedLanguages: Set<BundledLanguage>;
11
+ loadedThemes: Set<BundledTheme>;
12
+ }
13
+ /** Shiki highlighter 单例管理器 */
14
+ declare class ShikiManager {
15
+ private static instance;
16
+ /** 存储 highlighter 实例,key 为主题名称 */
17
+ private highlighters;
18
+ private constructor();
19
+ static getInstance(): ShikiManager;
20
+ /**
21
+ * 获取或创建 highlighter
22
+ * @param theme 主题名称
23
+ * @returns highlighter 实例
24
+ */
25
+ getHighlighter(theme: BundledTheme): Promise<HighlighterInfo>;
26
+ /**
27
+ * 加载语言(按需)
28
+ * @param theme 主题名称
29
+ * @param lang 语言名称
30
+ */
31
+ loadLanguage(theme: BundledTheme, lang: BundledLanguage): Promise<void>;
32
+ /**
33
+ * 加载主题(按需)
34
+ * @param theme 主题名称
35
+ */
36
+ loadTheme(theme: BundledTheme): Promise<void>;
37
+ /**
38
+ * 高亮代码
39
+ * @param theme 主题名称
40
+ * @param code 代码内容
41
+ * @param lang 语言名称
42
+ * @param fallbackTheme 回退主题
43
+ * @returns 高亮后的 HTML
44
+ */
45
+ codeToHtml(theme: BundledTheme, code: string, lang: BundledLanguage, fallbackTheme: BundledTheme): Promise<string>;
46
+ /**
47
+ * 清理所有 highlighter(应用退出或需要重置时调用)
48
+ */
49
+ disposeAll(): void;
50
+ }
51
+ /**
52
+ * 获取 ShikiManager 单例(延迟初始化)
53
+ * 避免模块加载时立即创建实例,支持 SSR
54
+ */
55
+ declare function getShikiManager(): ShikiManager;
56
+ export { getShikiManager, ShikiManager };
57
+ export interface UseShikiReturn {
58
+ highlighterInfo: Accessor<HighlighterInfo | null>;
59
+ isHighlighting: Accessor<boolean>;
60
+ isReady: Accessor<boolean>;
61
+ initHighlighter: () => Promise<void>;
62
+ highlight: (code: string, lang: string, fallbackTheme: string) => Promise<string>;
63
+ }
64
+ /**
65
+ * 使用 Shiki Highlighter(组合式函数)
66
+ *
67
+ * @param theme 主题名称
68
+ * @returns Shiki 相关的响应式状态和方法
69
+ */
70
+ export declare function useShiki(theme: string): UseShikiReturn;
71
+ //# sourceMappingURL=useShiki.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useShiki.d.ts","sourceRoot":"","sources":["../../src/composables/useShiki.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,UAAU,CAAA;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAI9E,UAAU,eAAe;IACvB,WAAW,EAAE,kBAAkB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAA;IAC9D,eAAe,EAAE,GAAG,CAAC,eAAe,CAAC,CAAA;IACrC,YAAY,EAAE,GAAG,CAAC,YAAY,CAAC,CAAA;CAChC;AAID,8BAA8B;AAC9B,cAAM,YAAY;IAChB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA4B;IAEnD,kCAAkC;IAClC,OAAO,CAAC,YAAY,CAAqC;IAEzD,OAAO;IAEP,MAAM,CAAC,WAAW,IAAI,YAAY;IAOlC;;;;OAIG;IACG,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC;IAuBnE;;;;OAIG;IACG,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAY7E;;;OAGG;IACG,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAYnD;;;;;;;OAOG;IACG,UAAU,CACd,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,eAAe,EACrB,aAAa,EAAE,YAAY,GAC1B,OAAO,CAAC,MAAM,CAAC;IAalB;;OAEG;IACH,UAAU;CAQX;AAMD;;;GAGG;AACH,iBAAS,eAAe,IAAI,YAAY,CAKvC;AAED,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,CAAA;AAIxC,MAAM,WAAW,cAAc;IAC7B,eAAe,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI,CAAC,CAAA;IACjD,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC1B,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACpC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CAClF;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CA0EtD"}
@@ -0,0 +1,25 @@
1
+ import { type Accessor } from 'solid-js';
2
+ import type { ParsedBlock } from '@incremark/core';
3
+ export interface UseStreamRendererOptions {
4
+ /** 初始块列表 */
5
+ initialBlocks?: ParsedBlock[];
6
+ }
7
+ export interface UseStreamRendererReturn {
8
+ /** 块列表 */
9
+ blocks: Accessor<ParsedBlock[]>;
10
+ /** 设置块列表 */
11
+ setBlocks: (blocks: ParsedBlock[]) => void;
12
+ /** 添加块 */
13
+ addBlocks: (blocks: ParsedBlock[]) => void;
14
+ /** 清空块列表 */
15
+ clearBlocks: () => void;
16
+ /** 块数量 */
17
+ blockCount: Accessor<number>;
18
+ }
19
+ /**
20
+ * SolidJS 流式渲染 Hook
21
+ *
22
+ * 用于管理流式渲染的块列表状态
23
+ */
24
+ export declare function useStreamRenderer(options?: UseStreamRendererOptions): UseStreamRendererReturn;
25
+ //# sourceMappingURL=useStreamRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStreamRenderer.d.ts","sourceRoot":"","sources":["../../src/composables/useStreamRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAElD,MAAM,WAAW,wBAAwB;IACvC,YAAY;IACZ,aAAa,CAAC,EAAE,WAAW,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU;IACV,MAAM,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAA;IAC/B,YAAY;IACZ,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IAC1C,UAAU;IACV,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IAC1C,YAAY;IACZ,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,UAAU;IACV,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B,GAAG,uBAAuB,CAoBjG"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @file useTypewriter Composable - 打字机效果管理
3
+ *
4
+ * @description
5
+ * 管理打字机效果的状态和控制逻辑。
6
+ *
7
+ * @author Incremark Team
8
+ * @license MIT
9
+ */
10
+ import { type Accessor } from 'solid-js';
11
+ import { type RootContent, type ParsedBlock, type BlockTransformer } from '@incremark/core';
12
+ import type { TypewriterOptions, TypewriterControls } from './useIncremark';
13
+ export interface UseTypewriterOptions {
14
+ typewriter: () => TypewriterOptions | undefined;
15
+ completedBlocks: Accessor<ParsedBlock[]>;
16
+ pendingBlocks: Accessor<ParsedBlock[]>;
17
+ }
18
+ /** 用于渲染的 block 类型 */
19
+ export type RenderBlock = ParsedBlock & {
20
+ isLastPending?: boolean;
21
+ };
22
+ export interface UseTypewriterReturn {
23
+ /** 用于渲染的 blocks(经过打字机处理或原始blocks) */
24
+ blocks: RenderBlock[];
25
+ /** 打字机控制对象 */
26
+ typewriter: TypewriterControls;
27
+ /** transformer 实例 */
28
+ transformer: BlockTransformer<RootContent> | null;
29
+ /** 所有动画是否已完成(队列为空且没有正在处理的 block) */
30
+ isAnimationComplete: Accessor<boolean>;
31
+ /**
32
+ * 脚注引用顺序(所有动画完成后才返回)
33
+ * 用于控制脚注的显示时机:只有当所有 blocks 的打字机动画都完成后才显示脚注
34
+ * 动画进行中时返回空数组
35
+ */
36
+ displayedFootnoteReferenceOrder: Accessor<string[]>;
37
+ }
38
+ /**
39
+ * useTypewriter Composable
40
+ *
41
+ * @description
42
+ * 管理打字机效果的所有状态和逻辑。
43
+ *
44
+ * @param options - 打字机配置和数据
45
+ * @returns 打字机状态和控制对象
46
+ */
47
+ export declare function useTypewriter(options: UseTypewriterOptions): UseTypewriterReturn;
48
+ //# sourceMappingURL=useTypewriter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTypewriter.d.ts","sourceRoot":"","sources":["../../src/composables/useTypewriter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,UAAU,CAAA;AAEjB,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,WAAW,EAGhB,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAG3E,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,iBAAiB,GAAG,SAAS,CAAA;IAC/C,eAAe,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAA;IACxC,aAAa,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAA;CACvC;AAED,qBAAqB;AACrB,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAEnE,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,cAAc;IACd,UAAU,EAAE,kBAAkB,CAAA;IAC9B,qBAAqB;IACrB,WAAW,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAA;IACjD,oCAAoC;IACpC,mBAAmB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACtC;;;;OAIG;IACH,+BAA+B,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;CACpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,CA0OhF"}
@@ -0,0 +1,17 @@
1
+ export { useIncremark, useStreamRenderer, useDevTools, useBlockTransformer, useLocale } from './composables';
2
+ export { useProvideDefinations } from './composables/useProvideDefinations';
3
+ export { useDefinationsContext } from './composables/useDefinationsContext';
4
+ export type { UseIncremarkOptions, TypewriterOptions, TypewriterControls, UseStreamRendererOptions, UseStreamRendererReturn, UseDevToolsOptions, UseDevToolsReturn, UseBlockTransformerOptions, UseBlockTransformerReturn } from './composables';
5
+ export * from './components';
6
+ export { clearAnimatedChunks, shouldAnimateChunk } from './utils/animatedChunks';
7
+ export { ThemeProvider as ThemeProviderExport, useTheme } from './components/ThemeProvider';
8
+ export { ConfigProvider as ConfigProviderExport } from './components/ConfigProvider';
9
+ export type { ParsedBlock, IncrementalUpdate, ParserOptions, BlockStatus, Root, RootContent, SourceBlock, DisplayBlock, TransformerPlugin, TransformerOptions, TransformerState, AnimationEffect } from '@incremark/core';
10
+ export type { Root as MdastRoot, Parent, Heading, Paragraph, Code, Blockquote, List, ListItem, Table, TableCell, ThematicBreak, Text, PhrasingContent, InlineCode, Link, LinkReference, Image, ImageReference, HTML, Definition, FootnoteDefinition } from 'mdast';
11
+ export { BlockTransformer, createBlockTransformer, countChars, sliceAst, cloneNode, codeBlockPlugin, mermaidPlugin, imagePlugin, mathPlugin, thematicBreakPlugin, defaultPlugins, allPlugins, createPlugin } from '@incremark/core';
12
+ export { type DesignTokens, defaultTheme, darkTheme, generateCSSVars, mergeTheme, applyTheme } from '@incremark/theme';
13
+ import { en as enShared, zhCN as zhCNShared } from '@incremark/shared';
14
+ import type { IncremarkLocale } from '@incremark/shared';
15
+ export { enShared as en, zhCNShared as zhCN };
16
+ export type { IncremarkLocale };
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,eAAe,CAAA;AAGtB,cAAc,cAAc,CAAC;AAG7B,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEhF,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC3F,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAGpF,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,IAAI,EACJ,WAAW,EAEX,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EAChB,MAAM,iBAAiB,CAAA;AAGxB,YAAY,EACV,IAAI,IAAI,SAAS,EACjB,MAAM,EAEN,OAAO,EACP,SAAS,EACT,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,aAAa,EAEb,IAAI,EACJ,eAAe,EACf,UAAU,EACV,IAAI,EACJ,aAAa,EACb,KAAK,EACL,cAAc,EAEd,IAAI,EAEJ,UAAU,EACV,kBAAkB,EACnB,MAAM,OAAO,CAAA;AAGd,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,eAAe,EACf,aAAa,EACb,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,YAAY,EACb,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EACL,KAAK,YAAY,EACjB,YAAY,EACZ,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACX,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,UAAU,IAAI,IAAI,EAAE,CAAA;AAC7C,YAAY,EAAE,eAAe,EAAE,CAAA"}