@data_wise/hyper-markdown 1.2.1 → 1.2.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.
- package/README.md +6 -6
- package/dist/hyper-markdown.css +1 -1
- package/dist/hyper-markdown.es.js +11 -8
- package/dist/hyper-markdown.umd.js +3 -3
- package/package.json +1 -1
|
@@ -104194,7 +104194,7 @@ function Qvt(t) {
|
|
|
104194
104194
|
`;
|
|
104195
104195
|
}
|
|
104196
104196
|
}
|
|
104197
|
-
}), ["info", "warning", "danger"].forEach((e) => {
|
|
104197
|
+
}), ["info", "warning", "danger", "success"].forEach((e) => {
|
|
104198
104198
|
t.use(Dte, e, {
|
|
104199
104199
|
validate: function(r) {
|
|
104200
104200
|
return r.trim().match(new RegExp(`^${e}$`));
|
|
@@ -141098,6 +141098,8 @@ const Y7t = /* @__PURE__ */ l6e(L7t, [["render", q7t], ["__scopeId", "data-v-3f2
|
|
|
141098
141098
|
"--md-container-warning-border": "#ff9800",
|
|
141099
141099
|
"--md-container-danger-bg": "#ffebee",
|
|
141100
141100
|
"--md-container-danger-border": "#f44336",
|
|
141101
|
+
"--md-container-success-bg": "#e8f5e9",
|
|
141102
|
+
"--md-container-success-border": "#4caf50",
|
|
141101
141103
|
// 错误提示
|
|
141102
141104
|
"--md-error-bg": "#ffebee",
|
|
141103
141105
|
"--md-error-border": "#f44336",
|
|
@@ -141176,6 +141178,8 @@ const Y7t = /* @__PURE__ */ l6e(L7t, [["render", q7t], ["__scopeId", "data-v-3f2
|
|
|
141176
141178
|
"--md-container-warning-border": "#d29922",
|
|
141177
141179
|
"--md-container-danger-bg": "rgba(248, 81, 73, 0.25)",
|
|
141178
141180
|
"--md-container-danger-border": "#f85149",
|
|
141181
|
+
"--md-container-success-bg": "rgba(46, 160, 67, 0.25)",
|
|
141182
|
+
"--md-container-success-border": "#3fb950",
|
|
141179
141183
|
// 错误提示
|
|
141180
141184
|
"--md-error-bg": "rgba(248, 81, 73, 0.15)",
|
|
141181
141185
|
"--md-error-border": "#da3633",
|
|
@@ -141322,10 +141326,10 @@ const Y7t = /* @__PURE__ */ l6e(L7t, [["render", q7t], ["__scopeId", "data-v-3f2
|
|
|
141322
141326
|
}
|
|
141323
141327
|
},
|
|
141324
141328
|
watch: {
|
|
141325
|
-
// 监听 localContent
|
|
141329
|
+
// 监听 localContent 变化,触发异步渲染并 emit 事件
|
|
141326
141330
|
localContent: {
|
|
141327
|
-
handler() {
|
|
141328
|
-
this._isMounted && !this._isRendering && (this.renderTimeout && clearTimeout(this.renderTimeout), this.renderTimeout = setTimeout(() => {
|
|
141331
|
+
handler(t, e) {
|
|
141332
|
+
t !== e && this._isMounted && this.$emit("update:content", t), this._isMounted && !this._isRendering && (this.renderTimeout && clearTimeout(this.renderTimeout), this.renderTimeout = setTimeout(() => {
|
|
141329
141333
|
this.$nextTick(() => {
|
|
141330
141334
|
this.renderWithQueue();
|
|
141331
141335
|
});
|
|
@@ -141574,16 +141578,15 @@ function K7t(t, e, r, n, i, a) {
|
|
|
141574
141578
|
}, [
|
|
141575
141579
|
eUe(zi("textarea", {
|
|
141576
141580
|
"onUpdate:modelValue": e[2] || (e[2] = (o) => i.localContent = o),
|
|
141577
|
-
onInput: e[3] || (e[3] = (...o) => t.handleInput && t.handleInput(...o)),
|
|
141578
141581
|
class: "editor",
|
|
141579
141582
|
placeholder: "请输入 Markdown 内容..."
|
|
141580
|
-
}, null,
|
|
141583
|
+
}, null, 512), [
|
|
141581
141584
|
[tUe, i.localContent]
|
|
141582
141585
|
])
|
|
141583
141586
|
], 4)) : QO("", !0),
|
|
141584
141587
|
Jze(s, {
|
|
141585
141588
|
visible: i.editModalVisible,
|
|
141586
|
-
"onUpdate:visible": e[
|
|
141589
|
+
"onUpdate:visible": e[3] || (e[3] = (o) => i.editModalVisible = o),
|
|
141587
141590
|
content: i.currentEditContent,
|
|
141588
141591
|
"component-type": i.currentComponentType,
|
|
141589
141592
|
onSave: a.handleEditSave,
|
|
@@ -141591,7 +141594,7 @@ function K7t(t, e, r, n, i, a) {
|
|
|
141591
141594
|
}, null, 8, ["visible", "content", "component-type", "onSave", "onClose"])
|
|
141592
141595
|
], 12, X7t);
|
|
141593
141596
|
}
|
|
141594
|
-
const $fr = /* @__PURE__ */ l6e(H7t, [["render", K7t], ["__scopeId", "data-v-
|
|
141597
|
+
const $fr = /* @__PURE__ */ l6e(H7t, [["render", K7t], ["__scopeId", "data-v-460a3957"]]);
|
|
141595
141598
|
class Wo {
|
|
141596
141599
|
// The + prefix indicates that these fields aren't writeable
|
|
141597
141600
|
// Lexer holding the input string.
|
|
@@ -197,7 +197,7 @@ echarts.use([`+I+"]);":"Unknown series "+A))}return}if(d==="tooltip"){if(b){proc
|
|
|
197
197
|
`}catch(h){return`<pre class="error">ECharts配置处理错误: ${h.message}</pre>`}return e(r,n,i,a,s)}}class Tvt extends _A{constructor(){super()}}const R4=new Tvt;function Tye(t){t.use(Zte,"cell",{validate:function(e){return e.trim().match(/^cell\s+(\d+)$/)},render:function(e,r){try{var n=e[r].info.trim().match(/^cell\s+(\d+)$/);if(e[r].nesting===1){var i=parseInt(n[1]);if(isNaN(i)||i<1||i>12)throw new Error(`Cell 宽度必须在 1-12 之间,当前值: ${n[1]}`);return'<div class="md-cell cell-'+i+`">
|
|
198
198
|
`}else return`</div>
|
|
199
199
|
`}catch(a){return console.error("Container渲染错误:",a),R4.addError({type:"Container",message:a.message,code:e[r].info}),`<div class="error">Container渲染错误: ${a.message}</div>
|
|
200
|
-
`}}}),["info","warning","danger"].forEach(e=>{t.use(Zte,e,{validate:function(r){return r.trim().match(new RegExp(`^${e}$`))},render:function(r,n){try{if(r[n].nesting===1){let i="",a=n+1;for(;a<r.length&&r[a].nesting!==-1;)r[a].type==="inline"&&r[a].content&&(i+=r[a].content+`
|
|
200
|
+
`}}}),["info","warning","danger","success"].forEach(e=>{t.use(Zte,e,{validate:function(r){return r.trim().match(new RegExp(`^${e}$`))},render:function(r,n){try{if(r[n].nesting===1){let i="",a=n+1;for(;a<r.length&&r[a].nesting!==-1;)r[a].type==="inline"&&r[a].content&&(i+=r[a].content+`
|
|
201
201
|
`),a++;return`<div class="${e}">
|
|
202
202
|
`}else return`</div>
|
|
203
203
|
`}catch(i){return console.error("Container渲染错误:",i),R4.addError({type:"Container",message:i.message,code:r[n].info}),`<div class="error">Container渲染错误: ${i.message}</div>
|
|
@@ -581,10 +581,10 @@ const danger = true;
|
|
|
581
581
|
> 支持嵌套其他Markdown语法`,table:`| 表头1 | 表头2 | 表头3 |
|
|
582
582
|
|-------|-------|-------|
|
|
583
583
|
| 内容1 | 内容2 | 内容3 |
|
|
584
|
-
| 行2列1 | 行2列2 | 行2列3 |`};function Y8t(t){return v3e[t]||""}function W8t(t){return{mermaid:"Mermaid 语法示例",echarts:"ECharts 配置示例",dataset:"数据集格式示例",sql_dataset:"SQL 查询示例",code:"代码示例",container:"容器语法示例",h1:"一级标题示例",h2:"二级标题示例",h3:"三级标题示例",h4:"四级标题示例",h5:"五级标题示例",h6:"六级标题示例",p:"段落示例",ul:"无序列表示例",ol:"有序列表示例",blockquote:"引用块示例",table:"表格示例"}[t]||"语法示例"}function H8t(t){return t in v3e}const y3e=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},X8t={name:"EditModal",props:{visible:{type:Boolean,default:!1},content:{type:String,default:""},componentType:{type:String,default:""}},data(){return{editor:null,editContent:""}},computed:{showSyntaxExample(){return H8t(this.componentType)}},watch:{visible(t){t?(this.editContent=this.content,this.$nextTick(()=>{this.initEditor()})):this.destroyEditor()},content(t){this.visible||(this.editContent=t)}},mounted(){this.visible&&this.$nextTick(()=>{this.initEditor()})},beforeUnmount(){this.destroyEditor()},methods:{initEditor(){this.editor&&this.destroyEditor();const t=this.$refs.editorContainer;if(!t)return;const e=In.create({doc:this.editContent,extensions:[Dr.lineWrapping,cIt(dIt),DMt({codeLanguages:[{name:"javascript",alias:["js"],load:()=>Bke()},{name:"sql",alias:[],load:()=>q8t()},{name:"python",alias:["py"],load:()=>t8t()},{name:"html",alias:[],load:()=>Xke()},{name:"css",alias:[],load:()=>Eke()},{name:"json",alias:[],load:()=>a8t()}]}),uN.of([...$6t]),Dr.updateListener.of(r=>{r.docChanged&&(this.editContent=r.state.doc.toString())})]});this.editor=new Dr({state:e,parent:t})},destroyEditor(){this.editor&&(this.editor.destroy(),this.editor=null)},closeModal(){this.$emit("update:visible",!1),this.$emit("close")},saveContent(){this.editor&&(this.editContent=this.editor.state.doc.toString()),this.$emit("save",this.editContent),this.closeModal()},getModalTitle(){return{mermaid:"编辑 Mermaid 图表",echarts:"编辑 ECharts 图表",dataset:"编辑数据集",code:"编辑代码块",container:"编辑容器内容",h1:"编辑一级标题",h2:"编辑二级标题",h3:"编辑三级标题",h4:"编辑四级标题",h5:"编辑五级标题",h6:"编辑六级标题",p:"编辑段落",ul:"编辑无序列表",ol:"编辑有序列表",blockquote:"编辑引用块",table:"编辑表格"}[this.componentType]||"编辑组件"},getContentLabel(){return{mermaid:"Mermaid 代码:",echarts:"ECharts 配置:",dataset:"数据集内容:",code:"代码内容:",container:"容器内容:",h1:"标题内容:",h2:"标题内容:",h3:"标题内容:",h4:"标题内容:",h5:"标题内容:",h6:"标题内容:",p:"段落内容:",ul:"列表内容:",ol:"列表内容:",blockquote:"引用内容:",table:"表格内容:"}[this.componentType]||"组件内容:"},getSyntaxExample(){return Y8t(this.componentType)},getExampleTitle(){return W8t(this.componentType)}}},Z8t={class:"modal-header"},K8t={class:"modal-content"},j8t={class:"edit-section"},J8t={class:"section-label"},e7t={class:"editor-container"},t7t={key:0,class:"syntax-example-panel"},r7t={class:"example-header"},n7t={class:"example-content"},i7t={ref:"editorContainer",class:"codemirror-editor"},a7t={class:"modal-footer"};function s7t(t,e,r,n,i,a){return r.visible?(Kt.openBlock(),Kt.createElementBlock("div",{key:0,class:"edit-modal-overlay",onClick:e[4]||(e[4]=(...s)=>a.closeModal&&a.closeModal(...s))},[Kt.createElementVNode("div",{class:"edit-modal",onClick:e[3]||(e[3]=Kt.withModifiers(()=>{},["stop"]))},[Kt.createElementVNode("div",Z8t,[Kt.createElementVNode("h3",null,Kt.toDisplayString(a.getModalTitle()),1),Kt.createElementVNode("button",{class:"close-btn",onClick:e[0]||(e[0]=(...s)=>a.closeModal&&a.closeModal(...s))},"×")]),Kt.createElementVNode("div",K8t,[Kt.createElementVNode("div",j8t,[Kt.createElementVNode("label",J8t,Kt.toDisplayString(a.getContentLabel()),1),Kt.createElementVNode("div",e7t,[a.showSyntaxExample?(Kt.openBlock(),Kt.createElementBlock("div",t7t,[Kt.createElementVNode("div",r7t,[Kt.createElementVNode("h4",null,Kt.toDisplayString(a.getExampleTitle()),1)]),Kt.createElementVNode("div",n7t,[Kt.createElementVNode("pre",null,Kt.toDisplayString(a.getSyntaxExample()),1)])])):Kt.createCommentVNode("",!0),Kt.createElementVNode("div",i7t,null,512)])])]),Kt.createElementVNode("div",a7t,[Kt.createElementVNode("button",{class:"btn btn-secondary",onClick:e[1]||(e[1]=(...s)=>a.closeModal&&a.closeModal(...s))},"取消"),Kt.createElementVNode("button",{class:"btn btn-primary",onClick:e[2]||(e[2]=(...s)=>a.saveContent&&a.saveContent(...s))},"保存")])])])):Kt.createCommentVNode("",!0)}const o7t=y3e(X8t,[["render",s7t],["__scopeId","data-v-3f2aef81"]]),l7t={light:{"--md-bg-primary":"#ffffff","--md-bg-secondary":"#f6f8fa","--md-bg-tertiary":"#ffffff","--md-bg-code":"#f6f8fa","--md-bg-code-inline":"rgba(175, 184, 193, 0.2)","--md-text-primary":"#24292f","--md-text-secondary":"#586069","--md-text-tertiary":"#24292e","--md-text-link":"#0969da","--md-text-code":"#24292e","--md-border-primary":"#d0d7de","--md-border-secondary":"#e1e4e8","--md-button-bg":"#fafbfc","--md-button-bg-hover":"#f3f4f6","--md-button-bg-active":"#007bff","--md-button-border":"#d1d5da","--md-button-text":"#24292e","--md-container-info-bg":"#e3f2fd","--md-container-info-border":"#2196f3","--md-container-warning-bg":"#fff3e0","--md-container-warning-border":"#ff9800","--md-container-danger-bg":"#ffebee","--md-container-danger-border":"#f44336","--md-error-bg":"#ffebee","--md-error-border":"#f44336","--md-error-text":"#c62828","--md-dataset-bg":"#fafbfc","--md-dataset-border":"#e1e4e8","--md-dataset-header-hover":"#f3f4f6","--md-dataset-id-bg":"#e1e4e8","--md-dataset-id-text":"#586069","--md-editable-hover-bg":"rgba(59, 130, 246, 0.1)","--md-editable-icon-bg":"#ffffff","--md-editable-icon-border":"#d0d7de","--md-editable-icon-color":"#656d76","--md-editable-icon-hover-bg":"#f6f8fa","--md-editable-icon-hover-border":"#0969da","--md-editable-icon-hover-color":"#0969da","--md-mermaid-bg":"#fafbfc","--md-mermaid-control-bg":"rgba(108, 117, 125, 0.8)","--md-mermaid-control-hover-bg":"rgba(73, 80, 87, 0.9)","--md-input-bg":"#ffffff","--md-input-border":"#ced4da","--md-input-text":"#495057","--md-input-hover-border":"#adb5bd","--md-input-focus-border":"#4dabf7","--md-input-focus-shadow":"rgba(77, 171, 247, 0.25)","--md-tag-bg":"#e1e4e8","--md-tag-text":"#24292e","--md-tag-remove-color":"#586069","--md-tag-remove-hover-bg":"#d1d5da","--md-condition-builder-bg":"#f8f9fa","--md-editor-bg":"#f5f5f5","--md-resizer-bg":"#e0e0e0","--md-resizer-hover-bg":"#409eff","--md-resizer-toggle-bg":"#e0e0e0","--md-resizer-toggle-text":"#606266","--md-resizer-toggle-hover-bg":"#409eff","--md-scrollbar-track":"#f4f4f5","--md-scrollbar-thumb":"#909399","--md-scrollbar-thumb-hover":"#606266"},dark:{"--md-bg-primary":"#0d1117","--md-bg-secondary":"#161b22","--md-bg-tertiary":"#0d1117","--md-bg-code":"#161b22","--md-bg-code-inline":"rgba(110, 118, 129, 0.4)","--md-text-primary":"#c9d1d9","--md-text-secondary":"#8b949e","--md-text-tertiary":"#c9d1d9","--md-text-link":"#58a6ff","--md-text-code":"#e6edf3","--md-border-primary":"#30363d","--md-border-secondary":"#30363d","--md-button-bg":"#21262d","--md-button-bg-hover":"#30363d","--md-button-bg-active":"#1f6feb","--md-button-border":"#30363d","--md-button-text":"#c9d1d9","--md-container-info-bg":"rgba(56, 139, 253, 0.25)","--md-container-info-border":"#58a6ff","--md-container-warning-bg":"rgba(187, 128, 9, 0.25)","--md-container-warning-border":"#d29922","--md-container-danger-bg":"rgba(248, 81, 73, 0.25)","--md-container-danger-border":"#f85149","--md-error-bg":"rgba(248, 81, 73, 0.15)","--md-error-border":"#da3633","--md-error-text":"#ff7b72","--md-dataset-bg":"#161b22","--md-dataset-border":"#30363d","--md-dataset-header-hover":"#21262d","--md-dataset-id-bg":"#30363d","--md-dataset-id-text":"#8b949e","--md-editable-hover-bg":"rgba(56, 139, 253, 0.15)","--md-editable-icon-bg":"#21262d","--md-editable-icon-border":"#30363d","--md-editable-icon-color":"#8b949e","--md-editable-icon-hover-bg":"#30363d","--md-editable-icon-hover-border":"#58a6ff","--md-editable-icon-hover-color":"#58a6ff","--md-mermaid-bg":"#161b22","--md-mermaid-control-bg":"rgba(139, 148, 158, 0.8)","--md-mermaid-control-hover-bg":"rgba(110, 118, 129, 0.9)","--md-input-bg":"#0d1117","--md-input-border":"#30363d","--md-input-text":"#c9d1d9","--md-input-hover-border":"#8b949e","--md-input-focus-border":"#4dabf7","--md-input-focus-shadow":"rgba(77, 171, 247, 0.25)","--md-tag-bg":"#30363d","--md-tag-text":"#c9d1d9","--md-tag-remove-color":"#8b949e","--md-tag-remove-hover-bg":"#21262d","--md-condition-builder-bg":"#0d1117","--md-editor-bg":"#161b22","--md-resizer-bg":"#30363d","--md-resizer-hover-bg":"#58a6ff","--md-resizer-toggle-bg":"#30363d","--md-resizer-toggle-text":"#8b949e","--md-resizer-toggle-hover-bg":"#58a6ff","--md-scrollbar-track":"#161b22","--md-scrollbar-thumb":"#30363d","--md-scrollbar-thumb-hover":"#484f58"}},c7t={name:"MarkdownEditor",components:{EditModal:o7t},props:{content:{type:String,default:""},editable:{type:Boolean,default:!1},defaultShowEditor:{type:Boolean,default:!0},datasource:{type:Object,required:!1,validator:t=>["getDataSource","getDataSourceList","clearDataSourceCache","testDataSourceConnection"].every(r=>typeof t[r]=="function")},dark:{type:[Boolean,String],default:"auto",validator:t=>t==="auto"||typeof t=="boolean"},theme:{type:Object,default:()=>({})}},emits:["update:content","errors"],data(){return{localContent:this.content,showEditor:this.defaultShowEditor,md:null,chartRenderer:null,datasetRenderer:null,mermaidRenderer:null,renderTimeout:null,editModalVisible:!1,currentEditContent:"",currentComponentType:"",currentComponentId:"",currentTokenStart:0,currentTokenEnd:0,isResizing:!1,editorWidth:500,minEditorWidth:300,maxEditorWidth:800,renderErrors:[],_isMounted:!1,_isRendering:!1}},watch:{content:{handler(t){this.localContent!==t&&(this.localContent=t)},immediate:!0},showEditor:{handler(){this.$nextTick(()=>{var t;return(t=this.chartRenderer)==null?void 0:t.processEChartsElements()})}}},created(){this.md=Owe(this.editable),this.chartRenderer=new xvt,this.datasetRenderer=new xZe,this.mermaidRenderer=new b3t,this.datasetRenderer.setDataSourceFunctions(this.datasource),this.chartRenderer.setDataset(this.datasetRenderer.getDataset()),this.updateMermaidTheme()},computed:{renderedContent(){return this.md?this.md.render(this.localContent):""},isDarkMode(){return this.dark==="auto"?typeof window<"u"&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches:!1:this.dark===!0},themeVars(){const t=this.isDarkMode?"dark":"light",e=l7t[t],r=this.theme[t]||{};return{...e,...r}}},watch:{localContent:{handler(){this._isMounted&&!this._isRendering&&(this.renderTimeout&&clearTimeout(this.renderTimeout),this.renderTimeout=setTimeout(()=>{this.$nextTick(()=>{this.renderWithQueue()})},150))}},isDarkMode:{handler(){if(this._isMounted){this.updateMermaidTheme();const t=this.isDarkMode?"dark":"light";this.chartRenderer.setTheme(t),this.$nextTick(()=>{this.clearProcessedMarks(),this.renderWithQueue()})}}}},mounted(){this._isMounted=!0,this.dark==="auto"&&typeof window<"u"&&window.matchMedia&&(this._themeMediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this._handleThemeChange=()=>{this.$forceUpdate()},this._themeMediaQuery.addEventListener("change",this._handleThemeChange));const t=this.$el.querySelector(".preview-container");t&&(this._handleEditClick=e=>{const r=e.target.closest('[data-editable="true"]');if(!r)return;e.stopPropagation(),e.preventDefault();const n=r.getBoundingClientRect(),i={left:n.right-20,top:n.top,right:n.right,bottom:n.top+20};if(!(e.clientX>=i.left&&e.clientX<=i.right&&e.clientY>=i.top&&e.clientY<=i.bottom))return;const s=r.getAttribute("data-component-id"),o=r.getAttribute("data-component-type"),l=r.getAttribute("data-position");if(s&&o&&l){const[u,h]=l.split(",").map(Number),d=this.localContent.substring(u,h);this.currentComponentId=s,this.currentComponentType=o,this.currentEditContent=d,this.currentTokenStart=u,this.currentTokenEnd=h,this.editModalVisible=!0}},t.addEventListener("click",this._handleEditClick)),this.$nextTick(()=>{const e=this.isDarkMode?"dark":"light";this.chartRenderer.setTheme(e),this.renderWithQueue(),this.chartRenderer.observeDOM(".preview-container"),this.datasetRenderer.observeDOM(".preview-container"),this.mermaidRenderer.observeDOM(".preview-container")})},beforeUnmount(){var e,r,n,i;this._isMounted=!1,this.renderTimeout&&(clearTimeout(this.renderTimeout),this.renderTimeout=null),this._themeMediaQuery&&this._handleThemeChange&&(this._themeMediaQuery.removeEventListener("change",this._handleThemeChange),this._themeMediaQuery=null,this._handleThemeChange=null);const t=(e=this.$el)==null?void 0:e.querySelector(".preview-container");t&&this._handleEditClick&&(t.removeEventListener("click",this._handleEditClick),this._handleEditClick=null),(r=this.chartRenderer)==null||r.cleanup(),(n=this.datasetRenderer)==null||n.cleanup(),(i=this.mermaidRenderer)==null||i.cleanup()},methods:{clearProcessedMarks(){const t=this.$el.querySelector(".preview-container");if(!t)return;t.querySelectorAll('.mermaid[data-processed="true"]').forEach(i=>{i.removeAttribute("data-processed"),i.dataset.originalCode&&(i.textContent=i.dataset.originalCode)}),t.querySelectorAll('.echarts-container[data-processed="true"]').forEach(i=>{i.removeAttribute("data-processed")}),t.querySelectorAll('.dataset-container[data-processed="true"]').forEach(i=>{i.removeAttribute("data-processed")})},updateMermaidTheme(){const t=this.isDarkMode?"dark":"default";bwe.initialize({startOnLoad:!0,theme:t,securityLevel:"loose",fontFamily:"inherit",flowchart:{htmlLabels:!0,useMaxWidth:!0}})},handleResizerMouseDown(t){this.$emit("update:content",this.localContent)},async renderWithQueue(){if(!this._isRendering){this._isRendering=!0;try{this.chartRenderer.clearErrors(),this.datasetRenderer.clearErrors(),this.mermaidRenderer.clearErrors(),R4.clearErrors(),await this.datasetRenderer.renderDatasets(),await this.$nextTick(),this.chartRenderer.processEChartsElements(),this.mermaidRenderer.renderMermaidCharts(),setTimeout(()=>{this.collectRenderErrors()},300)}catch(t){console.warn("渲染过程中发生错误:",t),setTimeout(()=>{this.collectRenderErrors()},300)}finally{this._isRendering=!1}}},getErrors(){return[...this.renderErrors]},collectRenderErrors(){const t=[],e=this.localContent.split(`
|
|
584
|
+
| 行2列1 | 行2列2 | 行2列3 |`};function Y8t(t){return v3e[t]||""}function W8t(t){return{mermaid:"Mermaid 语法示例",echarts:"ECharts 配置示例",dataset:"数据集格式示例",sql_dataset:"SQL 查询示例",code:"代码示例",container:"容器语法示例",h1:"一级标题示例",h2:"二级标题示例",h3:"三级标题示例",h4:"四级标题示例",h5:"五级标题示例",h6:"六级标题示例",p:"段落示例",ul:"无序列表示例",ol:"有序列表示例",blockquote:"引用块示例",table:"表格示例"}[t]||"语法示例"}function H8t(t){return t in v3e}const y3e=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},X8t={name:"EditModal",props:{visible:{type:Boolean,default:!1},content:{type:String,default:""},componentType:{type:String,default:""}},data(){return{editor:null,editContent:""}},computed:{showSyntaxExample(){return H8t(this.componentType)}},watch:{visible(t){t?(this.editContent=this.content,this.$nextTick(()=>{this.initEditor()})):this.destroyEditor()},content(t){this.visible||(this.editContent=t)}},mounted(){this.visible&&this.$nextTick(()=>{this.initEditor()})},beforeUnmount(){this.destroyEditor()},methods:{initEditor(){this.editor&&this.destroyEditor();const t=this.$refs.editorContainer;if(!t)return;const e=In.create({doc:this.editContent,extensions:[Dr.lineWrapping,cIt(dIt),DMt({codeLanguages:[{name:"javascript",alias:["js"],load:()=>Bke()},{name:"sql",alias:[],load:()=>q8t()},{name:"python",alias:["py"],load:()=>t8t()},{name:"html",alias:[],load:()=>Xke()},{name:"css",alias:[],load:()=>Eke()},{name:"json",alias:[],load:()=>a8t()}]}),uN.of([...$6t]),Dr.updateListener.of(r=>{r.docChanged&&(this.editContent=r.state.doc.toString())})]});this.editor=new Dr({state:e,parent:t})},destroyEditor(){this.editor&&(this.editor.destroy(),this.editor=null)},closeModal(){this.$emit("update:visible",!1),this.$emit("close")},saveContent(){this.editor&&(this.editContent=this.editor.state.doc.toString()),this.$emit("save",this.editContent),this.closeModal()},getModalTitle(){return{mermaid:"编辑 Mermaid 图表",echarts:"编辑 ECharts 图表",dataset:"编辑数据集",code:"编辑代码块",container:"编辑容器内容",h1:"编辑一级标题",h2:"编辑二级标题",h3:"编辑三级标题",h4:"编辑四级标题",h5:"编辑五级标题",h6:"编辑六级标题",p:"编辑段落",ul:"编辑无序列表",ol:"编辑有序列表",blockquote:"编辑引用块",table:"编辑表格"}[this.componentType]||"编辑组件"},getContentLabel(){return{mermaid:"Mermaid 代码:",echarts:"ECharts 配置:",dataset:"数据集内容:",code:"代码内容:",container:"容器内容:",h1:"标题内容:",h2:"标题内容:",h3:"标题内容:",h4:"标题内容:",h5:"标题内容:",h6:"标题内容:",p:"段落内容:",ul:"列表内容:",ol:"列表内容:",blockquote:"引用内容:",table:"表格内容:"}[this.componentType]||"组件内容:"},getSyntaxExample(){return Y8t(this.componentType)},getExampleTitle(){return W8t(this.componentType)}}},Z8t={class:"modal-header"},K8t={class:"modal-content"},j8t={class:"edit-section"},J8t={class:"section-label"},e7t={class:"editor-container"},t7t={key:0,class:"syntax-example-panel"},r7t={class:"example-header"},n7t={class:"example-content"},i7t={ref:"editorContainer",class:"codemirror-editor"},a7t={class:"modal-footer"};function s7t(t,e,r,n,i,a){return r.visible?(Kt.openBlock(),Kt.createElementBlock("div",{key:0,class:"edit-modal-overlay",onClick:e[4]||(e[4]=(...s)=>a.closeModal&&a.closeModal(...s))},[Kt.createElementVNode("div",{class:"edit-modal",onClick:e[3]||(e[3]=Kt.withModifiers(()=>{},["stop"]))},[Kt.createElementVNode("div",Z8t,[Kt.createElementVNode("h3",null,Kt.toDisplayString(a.getModalTitle()),1),Kt.createElementVNode("button",{class:"close-btn",onClick:e[0]||(e[0]=(...s)=>a.closeModal&&a.closeModal(...s))},"×")]),Kt.createElementVNode("div",K8t,[Kt.createElementVNode("div",j8t,[Kt.createElementVNode("label",J8t,Kt.toDisplayString(a.getContentLabel()),1),Kt.createElementVNode("div",e7t,[a.showSyntaxExample?(Kt.openBlock(),Kt.createElementBlock("div",t7t,[Kt.createElementVNode("div",r7t,[Kt.createElementVNode("h4",null,Kt.toDisplayString(a.getExampleTitle()),1)]),Kt.createElementVNode("div",n7t,[Kt.createElementVNode("pre",null,Kt.toDisplayString(a.getSyntaxExample()),1)])])):Kt.createCommentVNode("",!0),Kt.createElementVNode("div",i7t,null,512)])])]),Kt.createElementVNode("div",a7t,[Kt.createElementVNode("button",{class:"btn btn-secondary",onClick:e[1]||(e[1]=(...s)=>a.closeModal&&a.closeModal(...s))},"取消"),Kt.createElementVNode("button",{class:"btn btn-primary",onClick:e[2]||(e[2]=(...s)=>a.saveContent&&a.saveContent(...s))},"保存")])])])):Kt.createCommentVNode("",!0)}const o7t=y3e(X8t,[["render",s7t],["__scopeId","data-v-3f2aef81"]]),l7t={light:{"--md-bg-primary":"#ffffff","--md-bg-secondary":"#f6f8fa","--md-bg-tertiary":"#ffffff","--md-bg-code":"#f6f8fa","--md-bg-code-inline":"rgba(175, 184, 193, 0.2)","--md-text-primary":"#24292f","--md-text-secondary":"#586069","--md-text-tertiary":"#24292e","--md-text-link":"#0969da","--md-text-code":"#24292e","--md-border-primary":"#d0d7de","--md-border-secondary":"#e1e4e8","--md-button-bg":"#fafbfc","--md-button-bg-hover":"#f3f4f6","--md-button-bg-active":"#007bff","--md-button-border":"#d1d5da","--md-button-text":"#24292e","--md-container-info-bg":"#e3f2fd","--md-container-info-border":"#2196f3","--md-container-warning-bg":"#fff3e0","--md-container-warning-border":"#ff9800","--md-container-danger-bg":"#ffebee","--md-container-danger-border":"#f44336","--md-container-success-bg":"#e8f5e9","--md-container-success-border":"#4caf50","--md-error-bg":"#ffebee","--md-error-border":"#f44336","--md-error-text":"#c62828","--md-dataset-bg":"#fafbfc","--md-dataset-border":"#e1e4e8","--md-dataset-header-hover":"#f3f4f6","--md-dataset-id-bg":"#e1e4e8","--md-dataset-id-text":"#586069","--md-editable-hover-bg":"rgba(59, 130, 246, 0.1)","--md-editable-icon-bg":"#ffffff","--md-editable-icon-border":"#d0d7de","--md-editable-icon-color":"#656d76","--md-editable-icon-hover-bg":"#f6f8fa","--md-editable-icon-hover-border":"#0969da","--md-editable-icon-hover-color":"#0969da","--md-mermaid-bg":"#fafbfc","--md-mermaid-control-bg":"rgba(108, 117, 125, 0.8)","--md-mermaid-control-hover-bg":"rgba(73, 80, 87, 0.9)","--md-input-bg":"#ffffff","--md-input-border":"#ced4da","--md-input-text":"#495057","--md-input-hover-border":"#adb5bd","--md-input-focus-border":"#4dabf7","--md-input-focus-shadow":"rgba(77, 171, 247, 0.25)","--md-tag-bg":"#e1e4e8","--md-tag-text":"#24292e","--md-tag-remove-color":"#586069","--md-tag-remove-hover-bg":"#d1d5da","--md-condition-builder-bg":"#f8f9fa","--md-editor-bg":"#f5f5f5","--md-resizer-bg":"#e0e0e0","--md-resizer-hover-bg":"#409eff","--md-resizer-toggle-bg":"#e0e0e0","--md-resizer-toggle-text":"#606266","--md-resizer-toggle-hover-bg":"#409eff","--md-scrollbar-track":"#f4f4f5","--md-scrollbar-thumb":"#909399","--md-scrollbar-thumb-hover":"#606266"},dark:{"--md-bg-primary":"#0d1117","--md-bg-secondary":"#161b22","--md-bg-tertiary":"#0d1117","--md-bg-code":"#161b22","--md-bg-code-inline":"rgba(110, 118, 129, 0.4)","--md-text-primary":"#c9d1d9","--md-text-secondary":"#8b949e","--md-text-tertiary":"#c9d1d9","--md-text-link":"#58a6ff","--md-text-code":"#e6edf3","--md-border-primary":"#30363d","--md-border-secondary":"#30363d","--md-button-bg":"#21262d","--md-button-bg-hover":"#30363d","--md-button-bg-active":"#1f6feb","--md-button-border":"#30363d","--md-button-text":"#c9d1d9","--md-container-info-bg":"rgba(56, 139, 253, 0.25)","--md-container-info-border":"#58a6ff","--md-container-warning-bg":"rgba(187, 128, 9, 0.25)","--md-container-warning-border":"#d29922","--md-container-danger-bg":"rgba(248, 81, 73, 0.25)","--md-container-danger-border":"#f85149","--md-container-success-bg":"rgba(46, 160, 67, 0.25)","--md-container-success-border":"#3fb950","--md-error-bg":"rgba(248, 81, 73, 0.15)","--md-error-border":"#da3633","--md-error-text":"#ff7b72","--md-dataset-bg":"#161b22","--md-dataset-border":"#30363d","--md-dataset-header-hover":"#21262d","--md-dataset-id-bg":"#30363d","--md-dataset-id-text":"#8b949e","--md-editable-hover-bg":"rgba(56, 139, 253, 0.15)","--md-editable-icon-bg":"#21262d","--md-editable-icon-border":"#30363d","--md-editable-icon-color":"#8b949e","--md-editable-icon-hover-bg":"#30363d","--md-editable-icon-hover-border":"#58a6ff","--md-editable-icon-hover-color":"#58a6ff","--md-mermaid-bg":"#161b22","--md-mermaid-control-bg":"rgba(139, 148, 158, 0.8)","--md-mermaid-control-hover-bg":"rgba(110, 118, 129, 0.9)","--md-input-bg":"#0d1117","--md-input-border":"#30363d","--md-input-text":"#c9d1d9","--md-input-hover-border":"#8b949e","--md-input-focus-border":"#4dabf7","--md-input-focus-shadow":"rgba(77, 171, 247, 0.25)","--md-tag-bg":"#30363d","--md-tag-text":"#c9d1d9","--md-tag-remove-color":"#8b949e","--md-tag-remove-hover-bg":"#21262d","--md-condition-builder-bg":"#0d1117","--md-editor-bg":"#161b22","--md-resizer-bg":"#30363d","--md-resizer-hover-bg":"#58a6ff","--md-resizer-toggle-bg":"#30363d","--md-resizer-toggle-text":"#8b949e","--md-resizer-toggle-hover-bg":"#58a6ff","--md-scrollbar-track":"#161b22","--md-scrollbar-thumb":"#30363d","--md-scrollbar-thumb-hover":"#484f58"}},c7t={name:"MarkdownEditor",components:{EditModal:o7t},props:{content:{type:String,default:""},editable:{type:Boolean,default:!1},defaultShowEditor:{type:Boolean,default:!0},datasource:{type:Object,required:!1,validator:t=>["getDataSource","getDataSourceList","clearDataSourceCache","testDataSourceConnection"].every(r=>typeof t[r]=="function")},dark:{type:[Boolean,String],default:"auto",validator:t=>t==="auto"||typeof t=="boolean"},theme:{type:Object,default:()=>({})}},emits:["update:content","errors"],data(){return{localContent:this.content,showEditor:this.defaultShowEditor,md:null,chartRenderer:null,datasetRenderer:null,mermaidRenderer:null,renderTimeout:null,editModalVisible:!1,currentEditContent:"",currentComponentType:"",currentComponentId:"",currentTokenStart:0,currentTokenEnd:0,isResizing:!1,editorWidth:500,minEditorWidth:300,maxEditorWidth:800,renderErrors:[],_isMounted:!1,_isRendering:!1}},watch:{content:{handler(t){this.localContent!==t&&(this.localContent=t)},immediate:!0},showEditor:{handler(){this.$nextTick(()=>{var t;return(t=this.chartRenderer)==null?void 0:t.processEChartsElements()})}}},created(){this.md=Owe(this.editable),this.chartRenderer=new xvt,this.datasetRenderer=new xZe,this.mermaidRenderer=new b3t,this.datasetRenderer.setDataSourceFunctions(this.datasource),this.chartRenderer.setDataset(this.datasetRenderer.getDataset()),this.updateMermaidTheme()},computed:{renderedContent(){return this.md?this.md.render(this.localContent):""},isDarkMode(){return this.dark==="auto"?typeof window<"u"&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches:!1:this.dark===!0},themeVars(){const t=this.isDarkMode?"dark":"light",e=l7t[t],r=this.theme[t]||{};return{...e,...r}}},watch:{localContent:{handler(t,e){t!==e&&this._isMounted&&this.$emit("update:content",t),this._isMounted&&!this._isRendering&&(this.renderTimeout&&clearTimeout(this.renderTimeout),this.renderTimeout=setTimeout(()=>{this.$nextTick(()=>{this.renderWithQueue()})},150))}},isDarkMode:{handler(){if(this._isMounted){this.updateMermaidTheme();const t=this.isDarkMode?"dark":"light";this.chartRenderer.setTheme(t),this.$nextTick(()=>{this.clearProcessedMarks(),this.renderWithQueue()})}}}},mounted(){this._isMounted=!0,this.dark==="auto"&&typeof window<"u"&&window.matchMedia&&(this._themeMediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this._handleThemeChange=()=>{this.$forceUpdate()},this._themeMediaQuery.addEventListener("change",this._handleThemeChange));const t=this.$el.querySelector(".preview-container");t&&(this._handleEditClick=e=>{const r=e.target.closest('[data-editable="true"]');if(!r)return;e.stopPropagation(),e.preventDefault();const n=r.getBoundingClientRect(),i={left:n.right-20,top:n.top,right:n.right,bottom:n.top+20};if(!(e.clientX>=i.left&&e.clientX<=i.right&&e.clientY>=i.top&&e.clientY<=i.bottom))return;const s=r.getAttribute("data-component-id"),o=r.getAttribute("data-component-type"),l=r.getAttribute("data-position");if(s&&o&&l){const[u,h]=l.split(",").map(Number),d=this.localContent.substring(u,h);this.currentComponentId=s,this.currentComponentType=o,this.currentEditContent=d,this.currentTokenStart=u,this.currentTokenEnd=h,this.editModalVisible=!0}},t.addEventListener("click",this._handleEditClick)),this.$nextTick(()=>{const e=this.isDarkMode?"dark":"light";this.chartRenderer.setTheme(e),this.renderWithQueue(),this.chartRenderer.observeDOM(".preview-container"),this.datasetRenderer.observeDOM(".preview-container"),this.mermaidRenderer.observeDOM(".preview-container")})},beforeUnmount(){var e,r,n,i;this._isMounted=!1,this.renderTimeout&&(clearTimeout(this.renderTimeout),this.renderTimeout=null),this._themeMediaQuery&&this._handleThemeChange&&(this._themeMediaQuery.removeEventListener("change",this._handleThemeChange),this._themeMediaQuery=null,this._handleThemeChange=null);const t=(e=this.$el)==null?void 0:e.querySelector(".preview-container");t&&this._handleEditClick&&(t.removeEventListener("click",this._handleEditClick),this._handleEditClick=null),(r=this.chartRenderer)==null||r.cleanup(),(n=this.datasetRenderer)==null||n.cleanup(),(i=this.mermaidRenderer)==null||i.cleanup()},methods:{clearProcessedMarks(){const t=this.$el.querySelector(".preview-container");if(!t)return;t.querySelectorAll('.mermaid[data-processed="true"]').forEach(i=>{i.removeAttribute("data-processed"),i.dataset.originalCode&&(i.textContent=i.dataset.originalCode)}),t.querySelectorAll('.echarts-container[data-processed="true"]').forEach(i=>{i.removeAttribute("data-processed")}),t.querySelectorAll('.dataset-container[data-processed="true"]').forEach(i=>{i.removeAttribute("data-processed")})},updateMermaidTheme(){const t=this.isDarkMode?"dark":"default";bwe.initialize({startOnLoad:!0,theme:t,securityLevel:"loose",fontFamily:"inherit",flowchart:{htmlLabels:!0,useMaxWidth:!0}})},handleResizerMouseDown(t){this.$emit("update:content",this.localContent)},async renderWithQueue(){if(!this._isRendering){this._isRendering=!0;try{this.chartRenderer.clearErrors(),this.datasetRenderer.clearErrors(),this.mermaidRenderer.clearErrors(),R4.clearErrors(),await this.datasetRenderer.renderDatasets(),await this.$nextTick(),this.chartRenderer.processEChartsElements(),this.mermaidRenderer.renderMermaidCharts(),setTimeout(()=>{this.collectRenderErrors()},300)}catch(t){console.warn("渲染过程中发生错误:",t),setTimeout(()=>{this.collectRenderErrors()},300)}finally{this._isRendering=!1}}},getErrors(){return[...this.renderErrors]},collectRenderErrors(){const t=[],e=this.localContent.split(`
|
|
585
585
|
`);[...this.chartRenderer.getErrors(),...this.datasetRenderer.getErrors(),...this.mermaidRenderer.getErrors(),...R4.getErrors()].forEach(n=>{const i=this.findErrorLocation(n.message,e,n.type,n.code);i&&t.push(i)}),this.renderErrors=t,this.$emit("errors",t)},findErrorLocation(t,e,r=null,n=null){let i=-1,a=r||"Unknown",s=t;r||(t.includes("ECharts")?a="ECharts":t.includes("数据集")||t.includes("dataset")?a="Dataset":t.includes("Mermaid")&&(a="Mermaid"));let o=-1;for(let l=0;l<e.length;l++){const u=e[l];a==="ECharts"&&u.includes("```echarts")||(a==="Dataset"&&u.includes("```dataset")?n&&n.includes(u.trim())&&(o=l+1):a==="Mermaid"&&u.includes("```mermaid")||a==="Container"&&u.includes("::: cell"))}if(o>0&&(i=o),i>0){const l=Math.max(0,i-1);let u=l+1;if(a==="Container"){for(let f=l+1;f<e.length;f++)if(e[f].trim()===":::"){u=f+1;break}}else for(let f=l+1;f<e.length;f++)if(e[f].trim()==="```"){u=f+1;break}u=Math.min(e.length,u);const h=e.slice(l,u).join(`
|
|
586
586
|
`);let d=s.replace(/^(ECharts|数据集|Mermaid|Container)(渲染|配置处理)?错误:\s*/i,"").replace(/\s*at\s+.*$/gm,"").split(`
|
|
587
|
-
`)[0].trim();return{line:i,type:a,message:d,code:h,severity:"error"}}return null},handleEditSave(t){if(this.currentComponentId&&this.currentComponentType){const e=this.currentTokenStart,r=this.currentTokenEnd;let n=this.localContent;if(e!==void 0&&r!==void 0){const i=this.localContent.substring(0,e),a=this.localContent.substring(r);n=i+t+a;const s=r-e,l=t.length-s;l!==0&&this.$nextTick(()=>{this._updateSubsequentPositions(r,l)})}else{console.error("未找到精确位置信息,无法进行内容替换");return}this.localContent=n,this.$emit("update:content",n),this.editModalVisible=!1}},_updateSubsequentPositions(t,e){document.querySelectorAll('[data-editable="true"][data-position]').forEach(n=>{const i=n.getAttribute("data-position");if(!i)return;const[a,s]=i.split(",").map(Number);if(a>=t){const o=a+e,l=s+e;n.setAttribute("data-position",`${o},${l}`)}})},handleEditClose(){this.editModalVisible=!1,this.currentComponentId="",this.currentComponentType="",this.currentEditContent="",this.currentTokenStart=0,this.currentTokenEnd=0},toggleEditor(){this.showEditor=!this.showEditor},startResize(t){this.isResizing=!0,document.addEventListener("mousemove",this.handleResize),document.addEventListener("mouseup",this.stopResize),t.preventDefault()},handleResize(t){if(!this.isResizing)return;const n=this.$el.getBoundingClientRect().right-t.clientX;n>=this.minEditorWidth&&n<=this.maxEditorWidth&&(this.editorWidth=n)},stopResize(){this.isResizing=!1,document.removeEventListener("mousemove",this.handleResize),document.removeEventListener("mouseup",this.stopResize),this.$nextTick(()=>{var t;(t=this.chartRenderer)==null||t.processEChartsElements()})}}},u7t=["data-theme-mode"],h7t=["innerHTML"];function d7t(t,e,r,n,i,a){const s=Kt.resolveComponent("EditModal");return Kt.openBlock(),Kt.createElementBlock("div",{class:"markdown-editor","data-theme-mode":a.isDarkMode?"dark":"light",style:Kt.normalizeStyle(a.themeVars)},[Kt.createElementVNode("div",{class:Kt.normalizeClass(["preview-container",{"full-width":!i.showEditor}])},[Kt.createElementVNode("div",{class:"markdown-body",innerHTML:a.renderedContent},null,8,h7t)],2),r.editable?(Kt.openBlock(),Kt.createElementBlock("div",{key:0,class:Kt.normalizeClass(["resizer",{"resizer-collapsed":!i.showEditor}])},[i.showEditor?(Kt.openBlock(),Kt.createElementBlock("div",{key:0,class:"resizer-draggable",onMousedown:e[0]||(e[0]=(...o)=>a.startResize&&a.startResize(...o))},null,32)):Kt.createCommentVNode("",!0),Kt.createElementVNode("div",{class:"resizer-toggle",onClick:e[1]||(e[1]=(...o)=>a.toggleEditor&&a.toggleEditor(...o))},[Kt.createElementVNode("span",null,Kt.toDisplayString(i.showEditor?"›":"‹"),1)])],2)):Kt.createCommentVNode("",!0),r.editable&&i.showEditor?(Kt.openBlock(),Kt.createElementBlock("div",{key:1,class:"editor-container",style:Kt.normalizeStyle({width:i.editorWidth+"px"})},[Kt.withDirectives(Kt.createElementVNode("textarea",{"onUpdate:modelValue":e[2]||(e[2]=o=>i.localContent=o),onInput:e[3]||(e[3]=(...o)=>t.handleInput&&t.handleInput(...o)),class:"editor",placeholder:"请输入 Markdown 内容..."},null,544),[[Kt.vModelText,i.localContent]])],4)):Kt.createCommentVNode("",!0),Kt.createVNode(s,{visible:i.editModalVisible,"onUpdate:visible":e[4]||(e[4]=o=>i.editModalVisible=o),content:i.currentEditContent,"component-type":i.currentComponentType,onSave:a.handleEditSave,onClose:a.handleEditClose},null,8,["visible","content","component-type","onSave","onClose"])],12,u7t)}const _3e=y3e(c7t,[["render",d7t],["__scopeId","data-v-4bdabdba"]]);class Jo{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new Jo(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class Dl{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new Dl(r,Jo.range(this,e))}}class vt{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var h;a+15<o.length?h=o.slice(a,a+15)+"…":h=o.slice(a),n+=u+l+h}var d=new Error(n);return d.name="ParseError",d.__proto__=vt.prototype,d.position=i,i!=null&&a!=null&&(d.length=a-i),d.rawMessage=e,d}}vt.prototype.__proto__=Error.prototype;var f7t=function(e,r){return e===void 0?r:e},p7t=/([A-Z])/g,g7t=function(e){return e.replace(p7t,"-$1").toLowerCase()},m7t={"&":"&",">":">","<":"<",'"':""","'":"'"},v7t=/[&><"']/g;function y7t(t){return String(t).replace(v7t,e=>m7t[e])}var b3e=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},_7t=function(e){var r=b3e(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},b7t=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},S7t=function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},An={deflt:f7t,escape:y7t,hyphenate:g7t,getBaseElem:b3e,isCharacterBox:_7t,protocolFromUrl:S7t},AT={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function E7t(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class HW{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in AT)if(AT.hasOwnProperty(r)){var n=AT[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:E7t(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new vt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=An.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class h0{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Dh[O7t[this.id]]}sub(){return Dh[x7t[this.id]]}fracNum(){return Dh[T7t[this.id]]}fracDen(){return Dh[w7t[this.id]]}cramp(){return Dh[C7t[this.id]]}text(){return Dh[A7t[this.id]]}isTight(){return this.size>=2}}var XW=0,HN=1,J_=2,hf=3,RT=4,kc=5,eb=6,ko=7,Dh=[new h0(XW,0,!1),new h0(HN,0,!0),new h0(J_,1,!1),new h0(hf,1,!0),new h0(RT,2,!1),new h0(kc,2,!0),new h0(eb,3,!1),new h0(ko,3,!0)],O7t=[RT,kc,RT,kc,eb,ko,eb,ko],x7t=[kc,kc,kc,kc,ko,ko,ko,ko],T7t=[J_,hf,RT,kc,eb,ko,eb,ko],w7t=[hf,hf,kc,kc,ko,ko,ko,ko],C7t=[HN,HN,hf,hf,kc,kc,ko,ko],A7t=[XW,HN,J_,hf,J_,hf,J_,hf],yr={DISPLAY:Dh[XW],TEXT:Dh[J_],SCRIPT:Dh[RT],SCRIPTSCRIPT:Dh[eb]},ZW=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function R7t(t){for(var e=0;e<ZW.length;e++)for(var r=ZW[e],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(t>=i[0]&&t<=i[1])return r.name}return null}var XN=[];ZW.forEach(t=>t.blocks.forEach(e=>XN.push(...e)));function S3e(t){for(var e=0;e<XN.length;e+=2)if(t>=XN[e]&&t<=XN[e+1])return!0;return!1}var tb=80,k7t=function(e,r){return"M95,"+(622+e+r)+`
|
|
587
|
+
`)[0].trim();return{line:i,type:a,message:d,code:h,severity:"error"}}return null},handleEditSave(t){if(this.currentComponentId&&this.currentComponentType){const e=this.currentTokenStart,r=this.currentTokenEnd;let n=this.localContent;if(e!==void 0&&r!==void 0){const i=this.localContent.substring(0,e),a=this.localContent.substring(r);n=i+t+a;const s=r-e,l=t.length-s;l!==0&&this.$nextTick(()=>{this._updateSubsequentPositions(r,l)})}else{console.error("未找到精确位置信息,无法进行内容替换");return}this.localContent=n,this.$emit("update:content",n),this.editModalVisible=!1}},_updateSubsequentPositions(t,e){document.querySelectorAll('[data-editable="true"][data-position]').forEach(n=>{const i=n.getAttribute("data-position");if(!i)return;const[a,s]=i.split(",").map(Number);if(a>=t){const o=a+e,l=s+e;n.setAttribute("data-position",`${o},${l}`)}})},handleEditClose(){this.editModalVisible=!1,this.currentComponentId="",this.currentComponentType="",this.currentEditContent="",this.currentTokenStart=0,this.currentTokenEnd=0},toggleEditor(){this.showEditor=!this.showEditor},startResize(t){this.isResizing=!0,document.addEventListener("mousemove",this.handleResize),document.addEventListener("mouseup",this.stopResize),t.preventDefault()},handleResize(t){if(!this.isResizing)return;const n=this.$el.getBoundingClientRect().right-t.clientX;n>=this.minEditorWidth&&n<=this.maxEditorWidth&&(this.editorWidth=n)},stopResize(){this.isResizing=!1,document.removeEventListener("mousemove",this.handleResize),document.removeEventListener("mouseup",this.stopResize),this.$nextTick(()=>{var t;(t=this.chartRenderer)==null||t.processEChartsElements()})}}},u7t=["data-theme-mode"],h7t=["innerHTML"];function d7t(t,e,r,n,i,a){const s=Kt.resolveComponent("EditModal");return Kt.openBlock(),Kt.createElementBlock("div",{class:"markdown-editor","data-theme-mode":a.isDarkMode?"dark":"light",style:Kt.normalizeStyle(a.themeVars)},[Kt.createElementVNode("div",{class:Kt.normalizeClass(["preview-container",{"full-width":!i.showEditor}])},[Kt.createElementVNode("div",{class:"markdown-body",innerHTML:a.renderedContent},null,8,h7t)],2),r.editable?(Kt.openBlock(),Kt.createElementBlock("div",{key:0,class:Kt.normalizeClass(["resizer",{"resizer-collapsed":!i.showEditor}])},[i.showEditor?(Kt.openBlock(),Kt.createElementBlock("div",{key:0,class:"resizer-draggable",onMousedown:e[0]||(e[0]=(...o)=>a.startResize&&a.startResize(...o))},null,32)):Kt.createCommentVNode("",!0),Kt.createElementVNode("div",{class:"resizer-toggle",onClick:e[1]||(e[1]=(...o)=>a.toggleEditor&&a.toggleEditor(...o))},[Kt.createElementVNode("span",null,Kt.toDisplayString(i.showEditor?"›":"‹"),1)])],2)):Kt.createCommentVNode("",!0),r.editable&&i.showEditor?(Kt.openBlock(),Kt.createElementBlock("div",{key:1,class:"editor-container",style:Kt.normalizeStyle({width:i.editorWidth+"px"})},[Kt.withDirectives(Kt.createElementVNode("textarea",{"onUpdate:modelValue":e[2]||(e[2]=o=>i.localContent=o),class:"editor",placeholder:"请输入 Markdown 内容..."},null,512),[[Kt.vModelText,i.localContent]])],4)):Kt.createCommentVNode("",!0),Kt.createVNode(s,{visible:i.editModalVisible,"onUpdate:visible":e[3]||(e[3]=o=>i.editModalVisible=o),content:i.currentEditContent,"component-type":i.currentComponentType,onSave:a.handleEditSave,onClose:a.handleEditClose},null,8,["visible","content","component-type","onSave","onClose"])],12,u7t)}const _3e=y3e(c7t,[["render",d7t],["__scopeId","data-v-460a3957"]]);class Jo{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new Jo(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class Dl{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new Dl(r,Jo.range(this,e))}}class vt{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var h;a+15<o.length?h=o.slice(a,a+15)+"…":h=o.slice(a),n+=u+l+h}var d=new Error(n);return d.name="ParseError",d.__proto__=vt.prototype,d.position=i,i!=null&&a!=null&&(d.length=a-i),d.rawMessage=e,d}}vt.prototype.__proto__=Error.prototype;var f7t=function(e,r){return e===void 0?r:e},p7t=/([A-Z])/g,g7t=function(e){return e.replace(p7t,"-$1").toLowerCase()},m7t={"&":"&",">":">","<":"<",'"':""","'":"'"},v7t=/[&><"']/g;function y7t(t){return String(t).replace(v7t,e=>m7t[e])}var b3e=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},_7t=function(e){var r=b3e(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},b7t=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},S7t=function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},An={deflt:f7t,escape:y7t,hyphenate:g7t,getBaseElem:b3e,isCharacterBox:_7t,protocolFromUrl:S7t},AT={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function E7t(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class HW{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in AT)if(AT.hasOwnProperty(r)){var n=AT[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:E7t(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new vt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=An.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class h0{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Dh[O7t[this.id]]}sub(){return Dh[x7t[this.id]]}fracNum(){return Dh[T7t[this.id]]}fracDen(){return Dh[w7t[this.id]]}cramp(){return Dh[C7t[this.id]]}text(){return Dh[A7t[this.id]]}isTight(){return this.size>=2}}var XW=0,HN=1,J_=2,hf=3,RT=4,kc=5,eb=6,ko=7,Dh=[new h0(XW,0,!1),new h0(HN,0,!0),new h0(J_,1,!1),new h0(hf,1,!0),new h0(RT,2,!1),new h0(kc,2,!0),new h0(eb,3,!1),new h0(ko,3,!0)],O7t=[RT,kc,RT,kc,eb,ko,eb,ko],x7t=[kc,kc,kc,kc,ko,ko,ko,ko],T7t=[J_,hf,RT,kc,eb,ko,eb,ko],w7t=[hf,hf,kc,kc,ko,ko,ko,ko],C7t=[HN,HN,hf,hf,kc,kc,ko,ko],A7t=[XW,HN,J_,hf,J_,hf,J_,hf],yr={DISPLAY:Dh[XW],TEXT:Dh[J_],SCRIPT:Dh[RT],SCRIPTSCRIPT:Dh[eb]},ZW=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function R7t(t){for(var e=0;e<ZW.length;e++)for(var r=ZW[e],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(t>=i[0]&&t<=i[1])return r.name}return null}var XN=[];ZW.forEach(t=>t.blocks.forEach(e=>XN.push(...e)));function S3e(t){for(var e=0;e<XN.length;e+=2)if(t>=XN[e]&&t<=XN[e+1])return!0;return!1}var tb=80,k7t=function(e,r){return"M95,"+(622+e+r)+`
|
|
588
588
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
589
589
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
590
590
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data_wise/hyper-markdown",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A powerful Vue 3 Markdown editor with rich features including ECharts, Mermaid, KaTeX, and dataset support",
|
|
6
6
|
"keywords": ["vue", "markdown", "editor", "echarts", "mermaid", "katex", "datasets"],
|