markstream-vue2 0.0.42 → 0.0.45
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/chunks/{cssMode-86e8d6e4.cjs → cssMode-58e68511.cjs} +1 -1
- package/dist/chunks/{cssMode-32774a06.js → cssMode-60d93f28.js} +1 -1
- package/dist/chunks/{htmlMode-f84c7583.cjs → htmlMode-87a75897.cjs} +1 -1
- package/dist/chunks/{htmlMode-076e483c.js → htmlMode-8d468223.js} +1 -1
- package/dist/chunks/{index.legacy-1c6de434.js → index.legacy-010f0006.js} +2318 -1507
- package/dist/chunks/index.legacy-e02dc92b.cjs +1 -0
- package/dist/chunks/{jsonMode-e60229b9.cjs → jsonMode-2a97b947.cjs} +1 -1
- package/dist/chunks/{jsonMode-186d141c.js → jsonMode-307a9a02.js} +1 -1
- package/dist/chunks/{tsMode-6444eb2b.js → tsMode-4f227d36.js} +1 -1
- package/dist/chunks/{tsMode-5b9a0ba1.cjs → tsMode-b1f6e7cb.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +23 -7
- package/dist/index.js +3973 -3634
- package/dist/index.px.css +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/tailwind.ts +1 -1
- package/dist/types/components/CodeBlockNode/CodeBlockNode.vue.d.ts +27 -8
- package/dist/types/components/CodeBlockNode/HtmlPreviewFrame.vue.d.ts +2 -0
- package/dist/types/components/D2BlockNode/D2BlockNode.vue.d.ts +3 -3
- package/dist/types/components/D2BlockNode/d2.d.ts +13 -2
- package/dist/types/components/HeadingNode/HeadingNode.vue.d.ts +1 -1
- package/dist/types/components/HtmlBlockNode/HtmlBlockNode.vue.d.ts +19 -1
- package/dist/types/components/HtmlInlineNode/HtmlInlineNode.vue.d.ts +2 -0
- package/dist/types/components/ImageNode/ImageNode.vue.d.ts +2 -15
- package/dist/types/components/InfographicBlockNode/InfographicBlockNode.vue.d.ts +4 -3
- package/dist/types/components/InfographicBlockNode/infographic.d.ts +13 -1
- package/dist/types/components/MarkdownCodeBlockNode/MarkdownCodeBlockNode.vue.d.ts +8 -7
- package/dist/types/components/MathInlineNode/katex.d.ts +5 -2
- package/dist/types/components/MermaidBlockNode/MermaidBlockNode.vue.d.ts +4 -3
- package/dist/types/components/MermaidBlockNode/mermaid.d.ts +16 -2
- package/dist/types/components/NestedRenderer/NestedRenderer.vue.d.ts +1 -1
- package/dist/types/components/NodeRenderer/LegacyNodesRenderer.vue.d.ts +11 -8
- package/dist/types/components/NodeRenderer/NodeRenderer.vue.d.ts +16 -15
- package/dist/types/components/ParagraphNode/ParagraphNode.vue.d.ts +1 -0
- package/dist/types/components/TableNode/TableNode.vue.d.ts +3 -1
- package/dist/types/composables/useSafeI18n.d.ts +3 -3
- package/dist/types/composables/viewportPriority.d.ts +4 -3
- package/dist/types/exports.d.ts +23 -7
- package/dist/types/types/component-props.d.ts +20 -7
- package/dist/types/types/index.d.ts +2 -6
- package/dist/types/utils/diagramHeight.d.ts +11 -0
- package/dist/types/utils/htmlRenderer.d.ts +5 -27
- package/dist/types/utils/nestedHtml.d.ts +2 -1
- package/dist/types/utils/nestedNodes.d.ts +6 -1
- package/dist/types/utils/normalizeKaTeXRenderInput.d.ts +1 -0
- package/dist/workers/mermaidParser.worker.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/index.legacy-70f0e155.cjs +0 -1
- package/dist/types/components/SoftBreakNode/SoftBreakNode.vue.d.ts +0 -17
- package/dist/types/components/SoftBreakNode/index.d.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { Component } from 'vue-demi';
|
|
1
2
|
import { CustomComponents as MarkstreamCustomComponents } from './types/types';
|
|
3
|
+
import { MathOptions } from 'stream-markdown-parser';
|
|
2
4
|
import { LanguageIconResolver } from './types/utils/languageIcon';
|
|
3
5
|
import { default as AdmonitionNode } from './types/components/AdmonitionNode';
|
|
4
6
|
import { default as BlockquoteNode } from './types/components/BlockquoteNode';
|
|
@@ -35,7 +37,6 @@ import { default as NestedRenderer } from './types/components/NestedRenderer';
|
|
|
35
37
|
import { default as ParagraphNode } from './types/components/ParagraphNode';
|
|
36
38
|
import { default as PreCodeNode } from './types/components/PreCodeNode';
|
|
37
39
|
import { default as ReferenceNode } from './types/components/ReferenceNode';
|
|
38
|
-
import { default as SoftBreakNode } from './types/components/SoftBreakNode';
|
|
39
40
|
import { default as StrikethroughNode } from './types/components/StrikethroughNode';
|
|
40
41
|
import { default as StrongNode } from './types/components/StrongNode';
|
|
41
42
|
import { default as SubscriptNode } from './types/components/SubscriptNode';
|
|
@@ -51,7 +52,7 @@ export type { D2Loader } from './types/components/D2BlockNode/d2';
|
|
|
51
52
|
export type { KatexLoader } from './types/components/MathInlineNode/katex';
|
|
52
53
|
export type { MermaidLoader } from './types/components/MermaidBlockNode/mermaid';
|
|
53
54
|
export type { NodeRendererProps } from './types/components/NodeRenderer/NodeRenderer.vue';
|
|
54
|
-
export type { CodeBlockDiffAppearance, CodeBlockDiffHideUnchangedRegions, CodeBlockDiffHideUnchangedRegionsOptions, CodeBlockDiffHunkActionContext, CodeBlockDiffHunkActionKind, CodeBlockDiffHunkSide, CodeBlockDiffLineStyle, CodeBlockDiffUnchangedRegionStyle, CodeBlockMonacoLanguage, CodeBlockMonacoOptions, CodeBlockMonacoTheme, CodeBlockMonacoThemeObject, CodeBlockNodeProps, D2BlockNodeProps, ImageNodeProps, InfographicBlockNodeProps, LinkNodeProps, MathBlockNodeProps, MathInlineNodeProps, MermaidBlockEvent, MermaidBlockNodeProps, PreCodeNodeProps, } from './types/types/component-props';
|
|
55
|
+
export type { CodeBlockDiffAppearance, CodeBlockDiffHideUnchangedRegions, CodeBlockDiffHideUnchangedRegionsOptions, CodeBlockDiffHunkActionContext, CodeBlockDiffHunkActionKind, CodeBlockDiffHunkSide, CodeBlockDiffLineStyle, CodeBlockDiffUnchangedRegionStyle, CodeBlockMonacoLanguage, CodeBlockMonacoOptions, CodeBlockMonacoTheme, CodeBlockMonacoThemeObject, CodeBlockNodeProps, CodeBlockPreviewPayload, D2BlockNodeProps, ImageNodeProps, InfographicBlockNodeProps, LinkNodeProps, MathBlockNodeProps, MathInlineNodeProps, MarkdownCodeBlockPreviewPayload, MermaidBlockEvent, MermaidBlockNodeProps, PreCodeNodeProps, } from './types/types/component-props';
|
|
55
56
|
export * from './types/utils';
|
|
56
57
|
export * from './types/workers/katexCdnWorker';
|
|
57
58
|
export * from './types/workers/katexWorkerClient';
|
|
@@ -61,11 +62,26 @@ export { KATEX_COMMANDS, normalizeStandaloneBackslashT, setDefaultMathOptions }
|
|
|
61
62
|
export type { MathOptions } from 'stream-markdown-parser';
|
|
62
63
|
export interface CustomComponents extends MarkstreamCustomComponents {
|
|
63
64
|
}
|
|
64
|
-
export
|
|
65
|
+
export interface MarkstreamVue2PluginOptions {
|
|
66
|
+
getLanguageIcon?: LanguageIconResolver;
|
|
67
|
+
mathOptions?: MathOptions;
|
|
68
|
+
}
|
|
69
|
+
interface Vue2InstanceLike {
|
|
70
|
+
_setupProxy?: unknown;
|
|
71
|
+
}
|
|
72
|
+
interface Vue2ConstructorLike {
|
|
73
|
+
version?: string;
|
|
74
|
+
prototype: Record<string, unknown>;
|
|
75
|
+
component: (name: string, component: Component) => void;
|
|
76
|
+
mixin: (mixin: {
|
|
77
|
+
beforeCreate?: (this: Vue2InstanceLike) => void;
|
|
78
|
+
}) => void;
|
|
79
|
+
__composition_api_installed__?: boolean;
|
|
80
|
+
__compositionApiInstalled?: boolean;
|
|
81
|
+
__markstreamVue2SetupProxyPatched?: boolean;
|
|
82
|
+
}
|
|
83
|
+
export { AdmonitionNode, BlockquoteNode, CheckboxNode, clearGlobalCustomComponents, CodeBlockNode, D2BlockNode, DefinitionListNode, disableD2, disableKatex, disableMermaid, EmojiNode, EmphasisNode, enableD2, enableKatex, enableMermaid, FootnoteAnchorNode, FootnoteNode, FootnoteReferenceNode, getCustomNodeComponents, HardBreakNode, HeadingNode, HighlightNode, HtmlBlockNode, HtmlInlineNode, ImageNode, InfographicBlockNode, InlineCodeNode, InsertNode, isD2Enabled, isKatexEnabled, isMermaidEnabled, LinkNode, ListItemNode, ListNode, MarkdownCodeBlockNode, MarkdownRender, MathBlockNode, MathInlineNode, MermaidBlockNode, NestedRenderer, ParagraphNode, PreCodeNode, ReferenceNode, removeCustomComponents, setCustomComponents, setD2Loader, setDefaultI18nMap, setKatexLoader, setMermaidLoader, StrikethroughNode, StrongNode, SubscriptNode, SuperscriptNode, TableNode, TextNode, ThematicBreakNode, Tooltip, VmrContainerNode, };
|
|
65
84
|
export default MarkdownRender;
|
|
66
85
|
export declare const VueRendererMarkdown: {
|
|
67
|
-
install(Vue:
|
|
68
|
-
getLanguageIcon?: LanguageIconResolver;
|
|
69
|
-
mathOptions?: any;
|
|
70
|
-
}): void;
|
|
86
|
+
install(Vue: Vue2ConstructorLike, options?: MarkstreamVue2PluginOptions): void;
|
|
71
87
|
};
|