@zenuml/core 3.27.3 → 3.27.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{StylePanel.df7302eb.js → StylePanel.46ce6152.js} +2 -2
- package/dist/{close.00c53df8.js → close.e6c84d1d.js} +2 -2
- package/dist/{collapse-expanded.07002e73.js → collapse-expanded.7d8b9827.js} +2 -2
- package/dist/{collapse-unexpanded.fc9735a5.js → collapse-unexpanded.1521b299.js} +2 -2
- package/dist/{core.e6ea03af.js → core.8b1590c9.js} +4 -4
- package/dist/{debug.4f17a8ec.js → debug.21a4b6c2.js} +2 -2
- package/dist/{message-arrow.7eb73300.js → message-arrow.c50be745.js} +2 -2
- package/dist/{non-selected-cycle.fd5b08d3.js → non-selected-cycle.6dcf5a0b.js} +2 -2
- package/dist/{numbering.38966047.js → numbering.d91e5c7c.js} +2 -2
- package/dist/{privacy.61cab162.js → privacy.16b65f94.js} +2 -2
- package/dist/{selected-cycle.df57b7c2.js → selected-cycle.bdf38219.js} +2 -2
- package/dist/{theme.83f91c22.js → theme.ef367e38.js} +2 -2
- package/dist/{tip.7531e548.js → tip.4f8debda.js} +2 -2
- package/dist/zenuml.esm.mjs +1 -1
- package/dist/zenuml.js +1 -1
- package/dist/{zoom-in.3afce149.js → zoom-in.42736755.js} +2 -2
- package/dist/{zoom-out.4eccd314.js → zoom-out.7a2db36b.js} +2 -2
- package/package.json +1 -1
- package/scripts/bump-version.js +1 -5
package/dist/zenuml.js
CHANGED
|
@@ -3303,7 +3303,7 @@ A.method() {
|
|
|
3303
3303
|
<line x1="13" y1="16.75" x2="31" y2="16.75" stroke="#34D399" stroke-width="0.5"/>
|
|
3304
3304
|
<line x1="13" y1="30.75" x2="51" y2="30.75" stroke="#34D399" stroke-width="0.5"/>
|
|
3305
3305
|
</svg>
|
|
3306
|
-
`,kz="",LT={key:0,class:"dot"},aT=R("div",{class:"fixed inset-0 bg-black bg-opacity-25"},null,-1),cT={class:"fixed inset-0 overflow-y-auto"},CT={class:"flex min-h-full items-center justify-center p-4 text-center"},uT={class:"px-6"},hT=R("p",{class:"text-gray-500 text-sm"},"Customize your UI theme",-1),dT={class:"mt-4 ml-[-0.5rem] px-2 max-h-72 overflow-y-auto"},fT={class:"pb-4"},gT={class:"space-y-2"},pT={class:"flex w-full items-center justify-between"},mT={class:"flex items-center text-sm text-gray-900"},wT=["innerHTML"],xT={class:"pt-6 px-6 border-t flex items-center gap-2"},vT=["checked"],_T=R("label",{for:"scopeTheming",class:"select-none"},"Apply to this diagram only",-1),MT={__name:"ThemeSelect",setup(t){const e=c2(!1),n=[{name:"Legacy",id:"theme-default",icon:sT},{name:"Clear Light",id:"theme-clean-light",icon:rT},{name:"Clear Dark",id:"theme-clean-dark",icon:oT},{name:"Neon Dark",id:"theme-neon",icon:lT}],i=O3(),s=O(()=>i.state.theme||n[0].id),r=O(()=>i.state.enableScopedTheming||!1),o=c2(i.state.themeIconDot),l=()=>{e.value=!1,C("theme-close-modal")},L=()=>{e.value=!0,o.value=!0,i.commit("setThemeIconDot",!0),C("theme-open-modal")},a=u=>{i.commit("setTheme",u),C("theme-select")},c=u=>{i.commit("setEnableScopedTheming",u),C("theme-enable-scoped")},C=u=>{cm(i,{theme:s.value,enableScopedTheming:r.value},u,"sequence")};return(u,d)=>(I(),V(z2,null,[R("button",{type:"button",class:"flex items-center icon-container",onClick:L},[H(K4,{name:"theme"}),o.value?y2("",!0):(I(),V("span",LT))]),H(N(xn),{appear:"",show:e.value,as:"template"},{default:o3(()=>[H(N(HZ),{as:"div",onClose:l,class:"relative z-10"},{default:o3(()=>[H(N(I7),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:o3(()=>[aT],void 0,!0),_:1}),R("div",cT,[R("div",CT,[H(N(I7),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:o3(()=>[H(N($Z),{class:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white py-6 text-left align-middle shadow-xl transition-all"},{default:o3(()=>[R("div",uT,[H(N(VZ),{as:"h3",class:"text-lg font-semibold leading-6 text-gray-900"},{default:o3(()=>[n4(" Theme ")],void 0,!0),_:1}),hT,R("div",dT,[R("div",fT,[H(N(qZ),{"model-value":N(s),"onUpdate:modelValue":a},{default:o3(()=>[H(N(YL),{class:"sr-only"},{default:o3(()=>[n4("Server size")],void 0,!0),_:1}),R("div",gT,[(I(),V(z2,null,z3(n,g=>H(N(YZ),{as:"template",key:g.id,value:g.id},{default:o3(({checked:w})=>[R("div",{class:M2([[w?"border-2 text-gray-900 border-primary":"border-2 border-transparent"],"relative flex items-center cursor-pointer rounded-lg px-4 py-3 shadow-md"])},[R("div",pT,[R("div",mT,[w?(I(),T2(K4,{key:0,name:"selected-cycle","icon-class":"h-5 w-5 fill-none"})):(I(),T2(K4,{key:1,name:"non-selected-cycle","icon-class":"h-5 w-5"})),H(N(YL),{as:"p",class:M2(["text-gray-900","font-medium ml-2"])},{default:o3(()=>[n4(m1(g.name),1)],void 0,!0),_:2},1032,["class"])])]),R("span",{class:"inline-block w-20 border rounded-md overflow-hidden",innerHTML:g.icon},null,8,wT)],2)]),_:2},1032,["value"])),64))])],void 0,!0),_:1},8,["model-value"])])])]),R("div",xT,[R("input",{type:"checkbox",id:"scopeTheming",checked:N(r),onChange:d[0]||(d[0]=g=>c(g.target.checked))},null,40,vT),_T])],void 0,!0),_:1})],void 0,!0),_:1})])])],void 0,!0),_:1})],void 0,!0),_:1},8,["show"])],64))}},yT={name:"DiagramFrame",setup(){return{RenderMode:J1}},computed:{...B8(["showTips","scale","theme","numbering","enableMultiTheme","mode"]),..._3(["rootContext"]),title(){var t;return this.rootContext||console.error("`rootContext` is empty. Please make sure `store` is properly configured."),(t=this.rootContext)==null?void 0:t.title()}},mounted(){this.$el.__vue__=this},methods:{...so(["setScale","toggleNumbering"]),showTipsDialog(){var t;this.$store.state.showTips=!0;try{(t=this.$gtag)==null||t.event("view",{event_category:"help",event_label:"tips dialog"})}catch(e){console.error(e)}},toPng(){return $k(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toSvg(){return yL(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toBlob(){return Gk(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toJpeg(){return Vk(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},zoomIn(){const t=Math.min(1,this.scale+.1);this.setScale(t)},zoomOut(){this.setScale(this.scale-.1)},setTheme(t){this.theme=t},setStyle(t){const e="zenuml-style";let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.append(n)),n.textContent=t},setRemoteCss(t){const e=new URL(t).hostname;if(e==="https://github.com"||e==="https://githubusercontent.com"){fetch(t.replace("github.com","raw.githubusercontent.com").replace("blob/","")).then(s=>s.text()).then(s=>{this.setStyle(s)});return}const n="zenuml-remote-css";let i=document.getElementById(n);i||(i=document.createElement("link"),i.id=n,i.rel="stylesheet",document.head.append(i)),i.href=t}},components:{Icon:K4,Debug:eZ,WidthProvider:ek,TipsDialog:FA,DiagramTitle:Lm,SeqDiagram:Xt,Privacy:sm,ThemeSelect:MT}},RT={class:"frame text-skin-base bg-skin-frame border-skin-frame relative m-1 origin-top-left whitespace-nowrap border rounded"},AT={ref:"content"},kT={class:"header text-skin-title bg-skin-title border-skin-frame border-b p-1 flex justify-between rounded-t"},ZT={class:"left hide-export"},TT={class:"right flex-grow flex justify-between"},bT={key:0,class:"fixed z-40 inset-0 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},ST={class:"footer text-skin-control bg-skin-title px-4 py-1 flex justify-between items-center gap-3"},ET={class:"flex items-center gap-3 color-base"},IT={class:"flex items-center"},OT=["checked"],FT={for:"order-display",title:"Numbering the diagram",class:"select-none"},NT={class:"zoom-controls flex hide-export gap-1"},DT={class:"w-12 block text-center"},PT=R("a",{target:"_blank",href:"https://zenuml.com",class:"brand text-xs hover:underline"},"ZenUML.com",-1);function BT(t,e,n,i,s,r){const o=C2("debug"),l=C2("diagram-title"),L=C2("privacy"),a=C2("TipsDialog"),c=C2("seq-diagram"),C=C2("Icon"),u=C2("ThemeSelect"),d=C2("width-provider");return I(),V("div",{ref:"export",class:M2(["zenuml p-1 bg-skin-canvas",t.theme]),style:{display:"inline-block"}},[H(o),R("div",RT,[R("div",AT,[R("div",kT,[R("div",ZT,[O6(t.$slots,"default")]),R("div",TT,[H(l,{context:r.title},null,8,["context"]),H(L,{class:"hide-export flex items-center"})])]),R("div",null,[t.showTips?(I(),V("div",bT,[H(a)])):y2("",!0)]),H(c,{ref:"diagram",style:_2({transform:`scale(${t.scale})`}),class:"origin-top-left"},null,8,["style"])],512),R("div",ST,[t.mode===i.RenderMode.Dynamic?(I(),V(z2,{key:0},[R("div",ET,[R("button",{class:"bottom-1 flex items-center left-1 hide-export",onClick:e[0]||(e[0]=g=>r.showTipsDialog())},[H(C,{name:"tip","icon-class":"filter grayscale w-4 h-4"})]),t.enableMultiTheme?(I(),T2(u,{key:0})):y2("",!0),R("div",IT,[R("input",{type:"checkbox",id:"order-display",class:"mr-1",checked:t.numbering,onInput:e[1]||(e[1]=g=>t.toggleNumbering(!t.numbering))},null,40,OT),R("label",FT,[H(C,{name:"numbering","icon-class":"w-6 h-6"})])])]),R("div",NT,[R("button",{class:"zoom-in",onClick:e[2]||(e[2]=g=>r.zoomIn())},[H(C,{name:"zoom-in","icon-class":"w-4 h-4"})]),R("label",DT,m1(Number(t.scale*100).toFixed(0))+"%",1),R("button",{class:"zoom-out",onClick:e[3]||(e[3]=g=>r.zoomOut())},[H(C,{name:"zoom-out","icon-class":"w-4 h-4"})])]),PT],64)):y2("",!0)]),H(d)])],2)}const ea=Y2(yT,[["render",BT]]),zT="3.27.3",Zz="",Tz="",bz="",Sz="",Ez="",Iz="",Oz="",Fz="";function ta(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let _0=ta();function UT(t){_0=t}const WT=/[&<>"']/,HT=/[&<>"']/g,$T=/[<>"']|&(?!#?\w+;)/,VT=/[<>"']|&(?!#?\w+;)/g,GT={"&":"&","<":"<",">":">",'"':""","'":"'"},na=t=>GT[t];function A1(t,e){if(e){if(WT.test(t))return t.replace(HT,na)}else if($T.test(t))return t.replace(VT,na);return t}const jT=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ia(t){return t.replace(jT,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const qT=/(^|[^\[])\^/g;function n1(t,e){t=t.source||t,e=e||"";const n={replace:(i,s)=>(s=s.source||s,s=s.replace(qT,"$1"),t=t.replace(i,s),n),getRegex:()=>new RegExp(t,e)};return n}const KT=/[^\w:]/g,YT=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function sa(t,e,n){if(t){let i;try{i=decodeURIComponent(ia(n)).replace(KT,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}e&&!YT.test(n)&&(n=eb(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const O7={},XT=/^[^:]+:\/*[^/]*$/,QT=/^([^:]+:)[\s\S]*$/,JT=/^([^:]+:\/*[^/]*)[\s\S]*$/;function eb(t,e){O7[" "+t]||(XT.test(t)?O7[" "+t]=t+"/":O7[" "+t]=N7(t,"/",!0)),t=O7[" "+t];const n=t.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:t.replace(QT,"$1")+e:e.charAt(0)==="/"?n?e:t.replace(JT,"$1")+e:t+e}const F7={exec:function(){}};function H3(t){let e=1,n,i;for(;e<arguments.length;e++){n=arguments[e];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}function ra(t,e){const n=t.replace(/\|/g,(r,o,l)=>{let L=!1,a=o;for(;--a>=0&&l[a]==="\\";)L=!L;return L?"|":" |"}),i=n.split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i[i.length-1].trim()||i.pop(),i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function N7(t,e,n){const i=t.length;if(i===0)return"";let s=0;for(;s<i;){const r=t.charAt(i-s-1);if(r===e&&!n)s++;else if(r!==e&&n)s++;else break}return t.substr(0,i-s)}function tb(t,e){if(t.indexOf(e[1])===-1)return-1;const n=t.length;let i=0,s=0;for(;s<n;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return-1}function oa(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function la(t,e){if(e<1)return"";let n="";for(;e>1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function La(t,e,n,i){const s=e.href,r=e.title?A1(e.title):null,o=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){i.state.inLink=!0;const l={type:"link",raw:n,href:s,title:r,text:o,tokens:i.inlineTokens(o,[])};return i.state.inLink=!1,l}else return{type:"image",raw:n,href:s,title:r,text:A1(o)}}function nb(t,e){const n=t.match(/^(\s+)(?:```)/);if(n===null)return e;const i=n[1];return e.split(`
|
|
3306
|
+
`,kz="",LT={key:0,class:"dot"},aT=R("div",{class:"fixed inset-0 bg-black bg-opacity-25"},null,-1),cT={class:"fixed inset-0 overflow-y-auto"},CT={class:"flex min-h-full items-center justify-center p-4 text-center"},uT={class:"px-6"},hT=R("p",{class:"text-gray-500 text-sm"},"Customize your UI theme",-1),dT={class:"mt-4 ml-[-0.5rem] px-2 max-h-72 overflow-y-auto"},fT={class:"pb-4"},gT={class:"space-y-2"},pT={class:"flex w-full items-center justify-between"},mT={class:"flex items-center text-sm text-gray-900"},wT=["innerHTML"],xT={class:"pt-6 px-6 border-t flex items-center gap-2"},vT=["checked"],_T=R("label",{for:"scopeTheming",class:"select-none"},"Apply to this diagram only",-1),MT={__name:"ThemeSelect",setup(t){const e=c2(!1),n=[{name:"Legacy",id:"theme-default",icon:sT},{name:"Clear Light",id:"theme-clean-light",icon:rT},{name:"Clear Dark",id:"theme-clean-dark",icon:oT},{name:"Neon Dark",id:"theme-neon",icon:lT}],i=O3(),s=O(()=>i.state.theme||n[0].id),r=O(()=>i.state.enableScopedTheming||!1),o=c2(i.state.themeIconDot),l=()=>{e.value=!1,C("theme-close-modal")},L=()=>{e.value=!0,o.value=!0,i.commit("setThemeIconDot",!0),C("theme-open-modal")},a=u=>{i.commit("setTheme",u),C("theme-select")},c=u=>{i.commit("setEnableScopedTheming",u),C("theme-enable-scoped")},C=u=>{cm(i,{theme:s.value,enableScopedTheming:r.value},u,"sequence")};return(u,d)=>(I(),V(z2,null,[R("button",{type:"button",class:"flex items-center icon-container",onClick:L},[H(K4,{name:"theme"}),o.value?y2("",!0):(I(),V("span",LT))]),H(N(xn),{appear:"",show:e.value,as:"template"},{default:o3(()=>[H(N(HZ),{as:"div",onClose:l,class:"relative z-10"},{default:o3(()=>[H(N(I7),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:o3(()=>[aT],void 0,!0),_:1}),R("div",cT,[R("div",CT,[H(N(I7),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:o3(()=>[H(N($Z),{class:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white py-6 text-left align-middle shadow-xl transition-all"},{default:o3(()=>[R("div",uT,[H(N(VZ),{as:"h3",class:"text-lg font-semibold leading-6 text-gray-900"},{default:o3(()=>[n4(" Theme ")],void 0,!0),_:1}),hT,R("div",dT,[R("div",fT,[H(N(qZ),{"model-value":N(s),"onUpdate:modelValue":a},{default:o3(()=>[H(N(YL),{class:"sr-only"},{default:o3(()=>[n4("Server size")],void 0,!0),_:1}),R("div",gT,[(I(),V(z2,null,z3(n,g=>H(N(YZ),{as:"template",key:g.id,value:g.id},{default:o3(({checked:w})=>[R("div",{class:M2([[w?"border-2 text-gray-900 border-primary":"border-2 border-transparent"],"relative flex items-center cursor-pointer rounded-lg px-4 py-3 shadow-md"])},[R("div",pT,[R("div",mT,[w?(I(),T2(K4,{key:0,name:"selected-cycle","icon-class":"h-5 w-5 fill-none"})):(I(),T2(K4,{key:1,name:"non-selected-cycle","icon-class":"h-5 w-5"})),H(N(YL),{as:"p",class:M2(["text-gray-900","font-medium ml-2"])},{default:o3(()=>[n4(m1(g.name),1)],void 0,!0),_:2},1032,["class"])])]),R("span",{class:"inline-block w-20 border rounded-md overflow-hidden",innerHTML:g.icon},null,8,wT)],2)]),_:2},1032,["value"])),64))])],void 0,!0),_:1},8,["model-value"])])])]),R("div",xT,[R("input",{type:"checkbox",id:"scopeTheming",checked:N(r),onChange:d[0]||(d[0]=g=>c(g.target.checked))},null,40,vT),_T])],void 0,!0),_:1})],void 0,!0),_:1})])])],void 0,!0),_:1})],void 0,!0),_:1},8,["show"])],64))}},yT={name:"DiagramFrame",setup(){return{RenderMode:J1}},computed:{...B8(["showTips","scale","theme","numbering","enableMultiTheme","mode"]),..._3(["rootContext"]),title(){var t;return this.rootContext||console.error("`rootContext` is empty. Please make sure `store` is properly configured."),(t=this.rootContext)==null?void 0:t.title()}},mounted(){this.$el.__vue__=this},methods:{...so(["setScale","toggleNumbering"]),showTipsDialog(){var t;this.$store.state.showTips=!0;try{(t=this.$gtag)==null||t.event("view",{event_category:"help",event_label:"tips dialog"})}catch(e){console.error(e)}},toPng(){return $k(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toSvg(){return yL(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toBlob(){return Gk(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toJpeg(){return Vk(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},zoomIn(){const t=Math.min(1,this.scale+.1);this.setScale(t)},zoomOut(){this.setScale(this.scale-.1)},setTheme(t){this.theme=t},setStyle(t){const e="zenuml-style";let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.append(n)),n.textContent=t},setRemoteCss(t){const e=new URL(t).hostname;if(e==="https://github.com"||e==="https://githubusercontent.com"){fetch(t.replace("github.com","raw.githubusercontent.com").replace("blob/","")).then(s=>s.text()).then(s=>{this.setStyle(s)});return}const n="zenuml-remote-css";let i=document.getElementById(n);i||(i=document.createElement("link"),i.id=n,i.rel="stylesheet",document.head.append(i)),i.href=t}},components:{Icon:K4,Debug:eZ,WidthProvider:ek,TipsDialog:FA,DiagramTitle:Lm,SeqDiagram:Xt,Privacy:sm,ThemeSelect:MT}},RT={class:"frame text-skin-base bg-skin-frame border-skin-frame relative m-1 origin-top-left whitespace-nowrap border rounded"},AT={ref:"content"},kT={class:"header text-skin-title bg-skin-title border-skin-frame border-b p-1 flex justify-between rounded-t"},ZT={class:"left hide-export"},TT={class:"right flex-grow flex justify-between"},bT={key:0,class:"fixed z-40 inset-0 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},ST={class:"footer text-skin-control bg-skin-title px-4 py-1 flex justify-between items-center gap-3"},ET={class:"flex items-center gap-3 color-base"},IT={class:"flex items-center"},OT=["checked"],FT={for:"order-display",title:"Numbering the diagram",class:"select-none"},NT={class:"zoom-controls flex hide-export gap-1"},DT={class:"w-12 block text-center"},PT=R("a",{target:"_blank",href:"https://zenuml.com",class:"brand text-xs hover:underline"},"ZenUML.com",-1);function BT(t,e,n,i,s,r){const o=C2("debug"),l=C2("diagram-title"),L=C2("privacy"),a=C2("TipsDialog"),c=C2("seq-diagram"),C=C2("Icon"),u=C2("ThemeSelect"),d=C2("width-provider");return I(),V("div",{ref:"export",class:M2(["zenuml p-1 bg-skin-canvas",t.theme]),style:{display:"inline-block"}},[H(o),R("div",RT,[R("div",AT,[R("div",kT,[R("div",ZT,[O6(t.$slots,"default")]),R("div",TT,[H(l,{context:r.title},null,8,["context"]),H(L,{class:"hide-export flex items-center"})])]),R("div",null,[t.showTips?(I(),V("div",bT,[H(a)])):y2("",!0)]),H(c,{ref:"diagram",style:_2({transform:`scale(${t.scale})`}),class:"origin-top-left"},null,8,["style"])],512),R("div",ST,[t.mode===i.RenderMode.Dynamic?(I(),V(z2,{key:0},[R("div",ET,[R("button",{class:"bottom-1 flex items-center left-1 hide-export",onClick:e[0]||(e[0]=g=>r.showTipsDialog())},[H(C,{name:"tip","icon-class":"filter grayscale w-4 h-4"})]),t.enableMultiTheme?(I(),T2(u,{key:0})):y2("",!0),R("div",IT,[R("input",{type:"checkbox",id:"order-display",class:"mr-1",checked:t.numbering,onInput:e[1]||(e[1]=g=>t.toggleNumbering(!t.numbering))},null,40,OT),R("label",FT,[H(C,{name:"numbering","icon-class":"w-6 h-6"})])])]),R("div",NT,[R("button",{class:"zoom-in",onClick:e[2]||(e[2]=g=>r.zoomIn())},[H(C,{name:"zoom-in","icon-class":"w-4 h-4"})]),R("label",DT,m1(Number(t.scale*100).toFixed(0))+"%",1),R("button",{class:"zoom-out",onClick:e[3]||(e[3]=g=>r.zoomOut())},[H(C,{name:"zoom-out","icon-class":"w-4 h-4"})])]),PT],64)):y2("",!0)]),H(d)])],2)}const ea=Y2(yT,[["render",BT]]),zT="3.27.4",Zz="",Tz="",bz="",Sz="",Ez="",Iz="",Oz="",Fz="";function ta(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let _0=ta();function UT(t){_0=t}const WT=/[&<>"']/,HT=/[&<>"']/g,$T=/[<>"']|&(?!#?\w+;)/,VT=/[<>"']|&(?!#?\w+;)/g,GT={"&":"&","<":"<",">":">",'"':""","'":"'"},na=t=>GT[t];function A1(t,e){if(e){if(WT.test(t))return t.replace(HT,na)}else if($T.test(t))return t.replace(VT,na);return t}const jT=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ia(t){return t.replace(jT,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const qT=/(^|[^\[])\^/g;function n1(t,e){t=t.source||t,e=e||"";const n={replace:(i,s)=>(s=s.source||s,s=s.replace(qT,"$1"),t=t.replace(i,s),n),getRegex:()=>new RegExp(t,e)};return n}const KT=/[^\w:]/g,YT=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function sa(t,e,n){if(t){let i;try{i=decodeURIComponent(ia(n)).replace(KT,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}e&&!YT.test(n)&&(n=eb(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const O7={},XT=/^[^:]+:\/*[^/]*$/,QT=/^([^:]+:)[\s\S]*$/,JT=/^([^:]+:\/*[^/]*)[\s\S]*$/;function eb(t,e){O7[" "+t]||(XT.test(t)?O7[" "+t]=t+"/":O7[" "+t]=N7(t,"/",!0)),t=O7[" "+t];const n=t.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:t.replace(QT,"$1")+e:e.charAt(0)==="/"?n?e:t.replace(JT,"$1")+e:t+e}const F7={exec:function(){}};function H3(t){let e=1,n,i;for(;e<arguments.length;e++){n=arguments[e];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}function ra(t,e){const n=t.replace(/\|/g,(r,o,l)=>{let L=!1,a=o;for(;--a>=0&&l[a]==="\\";)L=!L;return L?"|":" |"}),i=n.split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i[i.length-1].trim()||i.pop(),i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function N7(t,e,n){const i=t.length;if(i===0)return"";let s=0;for(;s<i;){const r=t.charAt(i-s-1);if(r===e&&!n)s++;else if(r!==e&&n)s++;else break}return t.substr(0,i-s)}function tb(t,e){if(t.indexOf(e[1])===-1)return-1;const n=t.length;let i=0,s=0;for(;s<n;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return-1}function oa(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function la(t,e){if(e<1)return"";let n="";for(;e>1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function La(t,e,n,i){const s=e.href,r=e.title?A1(e.title):null,o=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){i.state.inLink=!0;const l={type:"link",raw:n,href:s,title:r,text:o,tokens:i.inlineTokens(o,[])};return i.state.inLink=!1,l}else return{type:"image",raw:n,href:s,title:r,text:A1(o)}}function nb(t,e){const n=t.match(/^(\s+)(?:```)/);if(n===null)return e;const i=n[1];return e.split(`
|
|
3307
3307
|
`).map(s=>{const r=s.match(/^\s+/);if(r===null)return s;const[o]=r;return o.length>=i.length?s.slice(i.length):s}).join(`
|
|
3308
3308
|
`)}class vn{constructor(e){this.options=e||_0}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const i=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:N7(i,`
|
|
3309
3309
|
`)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const i=n[0],s=nb(i,n[3]||"");return{type:"code",raw:i,lang:n[2]?n[2].trim():n[2],text:s}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let i=n[2].trim();if(/#$/.test(i)){const r=N7(i,"#");(this.options.pedantic||!r||/ $/.test(r))&&(i=r.trim())}const s={type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:[]};return this.lexer.inline(s.text,s.tokens),s}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const i=n[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:n[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(e){let n=this.rules.block.list.exec(e);if(n){let i,s,r,o,l,L,a,c,C,u,d,g,w=n[1].trim();const v=w.length>1,p={type:"list",raw:"",ordered:v,start:v?+w.slice(0,-1):"",loose:!1,items:[]};w=v?`\\d{1,9}\\${w.slice(-1)}`:`\\${w}`,this.options.pedantic&&(w=v?w:"[*+-]");const f=new RegExp(`^( {0,3}${w})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(g=!1,!(!(n=f.exec(e))||this.rules.block.hr.test(e)));){if(i=n[0],e=e.substring(i.length),c=n[2].split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as c, c as e, a as o } from "./core.
|
|
1
|
+
import { o as c, c as e, a as o } from "./core.8b1590c9.js";
|
|
2
2
|
const s = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
viewBox: "0 0 1024 1024"
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
_ as default,
|
|
21
21
|
l as render
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=zoom-in.
|
|
23
|
+
//# sourceMappingURL=zoom-in.42736755.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as t, c, a as o } from "./core.
|
|
1
|
+
import { o as t, c, a as o } from "./core.8b1590c9.js";
|
|
2
2
|
const e = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
viewBox: "0 0 1024 1024"
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
h as default,
|
|
21
21
|
s as render
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=zoom-out.
|
|
23
|
+
//# sourceMappingURL=zoom-out.7a2db36b.js.map
|
package/package.json
CHANGED
package/scripts/bump-version.js
CHANGED
|
@@ -102,13 +102,9 @@ const run = async () => {
|
|
|
102
102
|
JSON.stringify(pkg, null, 2) + "\n",
|
|
103
103
|
);
|
|
104
104
|
|
|
105
|
-
// Create git tag
|
|
106
|
-
execSync(`git tag v${newVersion}`);
|
|
107
|
-
console.log(`\nCreated git tag: v${newVersion}`);
|
|
108
|
-
|
|
109
105
|
// Set output for GitHub Actions
|
|
110
106
|
if (process.env.GITHUB_ACTIONS) {
|
|
111
|
-
fs.appendFileSync(process.env.GITHUB_OUTPUT, `version
|
|
107
|
+
fs.appendFileSync(process.env.GITHUB_OUTPUT, `version=${newVersion}\n`);
|
|
112
108
|
}
|
|
113
109
|
} else {
|
|
114
110
|
console.log("\nDRY RUN: No changes were made");
|