md-editor-v3
Advanced tools
Comparing version 4.14.2-0 to 4.15.0-0
@@ -204,2 +204,10 @@ declare const Editor: import('vue').DefineComponent<{ | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('./type').EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ | ||
@@ -408,2 +416,10 @@ onChange: { | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -456,3 +472,5 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
sanitizeMermaid: (h: string) => Promise<string>; | ||
codeFoldable: boolean; | ||
autoFoldThreshold: number; | ||
}, {}>; | ||
export default Editor; |
@@ -207,2 +207,10 @@ import { App } from 'vue'; | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -424,2 +432,10 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -472,2 +488,4 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
sanitizeMermaid: (h: string) => Promise<string>; | ||
codeFoldable: boolean; | ||
autoFoldThreshold: number; | ||
}, true, {}, {}, { | ||
@@ -683,2 +701,10 @@ P: {}; | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -731,2 +757,4 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
sanitizeMermaid: (h: string) => Promise<string>; | ||
codeFoldable: boolean; | ||
autoFoldThreshold: number; | ||
}>; | ||
@@ -939,2 +967,10 @@ __isFragment?: undefined; | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -987,2 +1023,4 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
sanitizeMermaid: (h: string) => Promise<string>; | ||
codeFoldable: boolean; | ||
autoFoldThreshold: number; | ||
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & { | ||
@@ -989,0 +1027,0 @@ install: (app: App) => App; |
@@ -59,2 +59,8 @@ import { contentPreviewProps } from './props'; | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
}; | ||
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{ | ||
@@ -113,2 +119,8 @@ modelValue: { | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
}; | ||
}>>, { | ||
@@ -115,0 +127,0 @@ previewOnly: boolean; |
@@ -122,2 +122,8 @@ declare const _default: import('vue').DefineComponent<{ | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
}; | ||
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ | ||
@@ -244,2 +250,8 @@ updateModelValue: { | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
}; | ||
}>>, { | ||
@@ -246,0 +258,0 @@ previewOnly: boolean; |
@@ -59,2 +59,8 @@ import { HeadList, SettingType, MdHeadingId, Themes } from '../../type'; | ||
}; | ||
codeFoldable: { | ||
type: PropType<boolean>; | ||
}; | ||
autoFoldThreshold: { | ||
type: PropType<number>; | ||
}; | ||
}; | ||
@@ -188,3 +194,9 @@ export declare const contentProps: { | ||
}; | ||
codeFoldable: { | ||
type: PropType<boolean>; | ||
}; | ||
autoFoldThreshold: { | ||
type: PropType<number>; | ||
}; | ||
}; | ||
export type ContentProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<typeof contentProps>>>>; |
@@ -194,2 +194,21 @@ import { ToolbarNames, MdHeadingId, Themes, Footers, ChangeEvent, SaveEvent, UploadImgEvent, HtmlChangedEvent, GetCatalogEvent, ErrorEvent, EditorEmits, CustomIcon } from './type'; | ||
}; | ||
/** | ||
* 是否开启折叠代码功能 | ||
* 不开启会使用div标签替代details标签 | ||
* | ||
* @default true | ||
*/ | ||
codeFoldable: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
/** | ||
* 触发自动折叠代码的行数阈值 | ||
* | ||
* @default 30 | ||
*/ | ||
autoFoldThreshold: { | ||
type: PropType<number>; | ||
default: number; | ||
}; | ||
}; | ||
@@ -645,4 +664,23 @@ export declare const editorProps: { | ||
}; | ||
/** | ||
* 是否开启折叠代码功能 | ||
* 不开启会使用div标签替代details标签 | ||
* | ||
* @default true | ||
*/ | ||
codeFoldable: { | ||
type: PropType<boolean>; | ||
default: boolean; | ||
}; | ||
/** | ||
* 触发自动折叠代码的行数阈值 | ||
* | ||
* @default 30 | ||
*/ | ||
autoFoldThreshold: { | ||
type: PropType<number>; | ||
default: number; | ||
}; | ||
}; | ||
export declare const mdPreviewEmits: EditorEmits; | ||
export declare const editorEmits: EditorEmits; |
@@ -94,2 +94,10 @@ import { App } from 'vue'; | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -198,2 +206,10 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -233,2 +249,4 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
sanitizeMermaid: (h: string) => Promise<string>; | ||
codeFoldable: boolean; | ||
autoFoldThreshold: number; | ||
}, true, {}, {}, { | ||
@@ -331,2 +349,10 @@ P: {}; | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -366,2 +392,4 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
sanitizeMermaid: (h: string) => Promise<string>; | ||
codeFoldable: boolean; | ||
autoFoldThreshold: number; | ||
}>; | ||
@@ -461,2 +489,10 @@ __isFragment?: undefined; | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -496,2 +532,4 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
sanitizeMermaid: (h: string) => Promise<string>; | ||
codeFoldable: boolean; | ||
autoFoldThreshold: number; | ||
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & { | ||
@@ -498,0 +536,0 @@ install: (app: App) => App; |
@@ -91,2 +91,10 @@ declare const MdPreview: import('vue').DefineComponent<{ | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('../MdEditor/type').EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ | ||
@@ -182,2 +190,10 @@ modelValue: { | ||
}; | ||
codeFoldable: { | ||
type: import('vue').PropType<boolean>; | ||
default: boolean; | ||
}; | ||
autoFoldThreshold: { | ||
type: import('vue').PropType<number>; | ||
default: number; | ||
}; | ||
}>> & { | ||
@@ -217,3 +233,5 @@ onOnChange?: ((...args: any[]) => any) | undefined; | ||
sanitizeMermaid: (h: string) => Promise<string>; | ||
codeFoldable: boolean; | ||
autoFoldThreshold: number; | ||
}, {}>; | ||
export default MdPreview; |
{ | ||
"name": "md-editor-v3", | ||
"version": "4.14.2-0", | ||
"version": "4.15.0-0", | ||
"license": "MIT", | ||
@@ -66,3 +66,3 @@ "keywords": [ | ||
"@typescript-eslint/parser": "^7.7.0", | ||
"@vavt/markdown-theme": "^3.2.4", | ||
"@vavt/markdown-theme": "^4.0.0", | ||
"@vavt/vite-plugin-import-markdown": "^1.0.0", | ||
@@ -69,0 +69,0 @@ "@vitejs/plugin-vue": "^5.0.4", |
@@ -127,2 +127,4 @@ # 🎄 md-editor-v3 | ||
| sanitizeMermaid | `(h: string) => Promise<string>` | (h: string) => Promise.resolve(h) | Convert the generated mermaid code | | ||
| codeFoldable | `boolean` | true | Whether to enable code folding feature | | ||
| autoFoldThreshold | `number` | 30 | Threshold for triggering automatic code folding by line count | | ||
@@ -129,0 +131,0 @@ ### 🔩 MdEditor Props |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28750
1029
2573271